Skip to content

Commit 0bb2149

Browse files
committed
Fix test configuration
1 parent b07b336 commit 0bb2149

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

jest.config.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
module.exports = {
22
verbose: true,
3-
modulePathIgnorePatterns: ['package.json'],
3+
projects: ['<rootDir>'],
4+
testMatch: [
5+
'**/__tests__/**/*.[jt]s?(x)',
6+
'**/test/**/*.[jt]s?(x)',
7+
'**/?(*.)+(spec|test).[jt]s?(x)',
8+
],
9+
testPathIgnorePatterns: [
10+
'/(?:production_)?node_modules/',
11+
'.d.ts$',
12+
'<rootDir>/test/fixtures',
13+
'<rootDir>/test/helpers',
14+
'__mocks__',
15+
],
416
transform: {
5-
'^.+\\.[t|j]sx?$': 'babel-jest',
17+
'^.+\\.[jt]sx?$': 'babel-jest',
18+
},
19+
moduleNameMapper: {
20+
'^(\\.\\/.+)\\.js$': '$1',
621
},
7-
reporters: [],
822
};

0 commit comments

Comments
 (0)