Skip to content

Commit

Permalink
Update jest setup path
Browse files Browse the repository at this point in the history
  • Loading branch information
geriux committed Mar 9, 2023
1 parent 9278461 commit be3b94f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
preset: './gutenberg/node_modules/react-native/jest-preset.js',
setupFiles: [ '<rootDir>/' + configPath + '/setup.js', './jest_setup.js' ],
setupFiles: [ '<rootDir>/' + configPath + '/setup.js', './jest.setup.js' ],
setupFilesAfterEnv: [ '<rootDir>/' + configPath + '/setup-after-env.js' ],
testMatch: [ '<rootDir>/src/**/test/*.[jt]s?(x)' ],
testPathIgnorePatterns: [
Expand Down
4 changes: 0 additions & 4 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// Jetpack mocks
global.window.JP_CONNECTION_INITIAL_STATE = {};

jest.mock( './jetpack/projects/js-packages/config/src', () => ( {
__esModule: true,
} ) );

jest.mock(
'./jetpack/projects/js-packages/shared-extension-utils/index.js',
() => ( {
Expand Down

0 comments on commit be3b94f

Please sign in to comment.