We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b07b336 commit 0bb2149Copy full SHA for 0bb2149
jest.config.js
@@ -1,8 +1,22 @@
1
module.exports = {
2
verbose: true,
3
- modulePathIgnorePatterns: ['package.json'],
+ 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
16
transform: {
- '^.+\\.[t|j]sx?$': 'babel-jest',
17
+ '^.+\\.[jt]sx?$': 'babel-jest',
18
+ },
19
+ moduleNameMapper: {
20
+ '^(\\.\\/.+)\\.js$': '$1',
21
},
- reporters: [],
22
};
0 commit comments