Просмотр исходного кода

test-config: Add static/ to jest test match config (#37618)

An attempt to break frontend test colocation into
smaller steps.
Shruthi 2 лет назад
Родитель
Сommit
797a9ca47d
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      jest.config.ts

+ 4 - 1
jest.config.ts

@@ -174,7 +174,10 @@ const config: Config.InitialOptions = {
     '<rootDir>/tests/js/setupFramework.ts',
     '@testing-library/jest-dom/extend-expect',
   ],
-  testMatch: testMatch || ['<rootDir>/tests/js/**/*(*.)@(spec|test).(js|ts)?(x)'],
+  testMatch: testMatch || [
+    '<rootDir>/static/**/?(*.)+(spec|test).[jt]s?(x)',
+    '<rootDir>/tests/js/**/*(*.)@(spec|test).(js|ts)?(x)',
+  ],
   testPathIgnorePatterns: ['<rootDir>/tests/sentry/lang/javascript/'],
 
   unmockedModulePathPatterns: [