Преглед на файлове

add modulePathIgnorePatterns with regex

yohei0125 преди 4 години
родител
ревизия
7023e33cc5
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      packages/app/jest.config.js

+ 3 - 3
packages/app/jest.config.js

@@ -37,9 +37,9 @@ module.exports = {
 
       rootDir: '.',
       roots: ['<rootDir>'],
-      testMatch: ['<rootDir>/test/integration/**/*.test.ts', '<rootDir>/test/integration/**/*.test.js',
-                  '!<rootDir>/test/integration/**/v5.*.test.ts', '!<rootDir>/test/integration/**/v5.*.test.js'],
-
+      testMatch: ['<rootDir>/test/integration/**/*.test.ts', '<rootDir>/test/integration/**/*.test.js'],
+      // https://regex101.com/r/nErofj/1
+      modulePathIgnorePatterns: ['<rootDir>/test/integration//*.*/v5(..*)*.[t|j]s'],
       testEnvironment: 'node',
       globalSetup: '<rootDir>/test/integration/global-setup.js',
       globalTeardown: '<rootDir>/test/integration/global-teardown.js',