Skip to content

Commit

Permalink
Update jest configuration to only ignore test from /wordpress/ if it …
Browse files Browse the repository at this point in the history
…is in a subdirectory of the project (#20420)
  • Loading branch information
brentswisher authored Feb 25, 2020
1 parent a36411a commit 19f87d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-tests/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
],
testPathIgnorePatterns: [
'/node_modules/',
'/wordpress/',
'<rootDir>/wordpress/',
'e2e-tests/specs/performance/',
],
};
2 changes: 1 addition & 1 deletion packages/jest-preset-default/jest-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
'**/test/*.[jt]s',
'**/?(*.)test.[jt]s',
],
testPathIgnorePatterns: [ '/node_modules/', '/wordpress/' ],
testPathIgnorePatterns: [ '/node_modules/', '<rootDir>/wordpress/' ],
timers: 'fake',
transform: {
'^.+\\.[jt]sx?$': require.resolve( 'babel-jest' ),
Expand Down
2 changes: 1 addition & 1 deletion test/native/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
testMatch: [ '**/test/*.native.[jt]s?(x)' ],
testPathIgnorePatterns: [
'/node_modules/',
'/wordpress/',
'<rootDir>/wordpress/',
'/__device-tests__/',
],
testURL: 'http://localhost/',
Expand Down
2 changes: 1 addition & 1 deletion test/unit/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
'/.git/',
'/node_modules/',
'/packages/e2e-tests',
'/wordpress/',
'<rootDir>/wordpress/',
'<rootDir>/.*/build/',
'<rootDir>/.*/build-module/',
'<rootDir>/.+.native.js$',
Expand Down

0 comments on commit 19f87d0

Please sign in to comment.