diff --git a/client/extract-translatable-strings.js b/client/extract-translatable-strings.js index b889e9a499..85bc01b101 100644 --- a/client/extract-translatable-strings.js +++ b/client/extract-translatable-strings.js @@ -24,7 +24,7 @@ extractor }, }), ]) - .parseFilesGlob('./src/**/*.@(ts|js|tsx)'); + .parseFilesGlob('./src/**/!(*.test).@(ts|js|tsx)'); extractor.savePotFile('../wagtail/admin/locale/en/LC_MESSAGES/djangojs.po');