diff --git a/jest.config.js b/jest.config.js index 84dd2a4141..c95486fdfe 100644 --- a/jest.config.js +++ b/jest.config.js @@ -5,7 +5,7 @@ module.exports = { globalTeardown: '/tests/api/globalTeardown.js', testPathIgnorePatterns: [ 'node_modules', - 'src/client/*', + 'src/admin/*', ], testTimeout: 15000, moduleNameMapper: { diff --git a/jest.react.config.js b/jest.react.config.js index 4b0313a5cf..19e5697476 100644 --- a/jest.react.config.js +++ b/jest.react.config.js @@ -1,7 +1,7 @@ module.exports = { verbose: true, testTimeout: 15000, - testRegex: '(/src/client/.*\\.(test|spec))\\.[jt]sx?$', + testRegex: '(/src/admin/.*\\.(test|spec))\\.[jt]sx?$', setupFilesAfterEnv: ['/tests/client/globalSetup.js'], moduleNameMapper: { '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '/src/mocks/fileMock.js',