|
1 | 1 | module.exports = {
|
2 |
| -// testEnvironment: 'node', // Use the Node.js environment for testing |
3 |
| -// roots: ['<rootDir>/controllers'], // Set the root directory for test files |
4 |
| - |
5 |
| -// testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', |
6 |
| - |
7 |
| -// // Code coverage settings |
8 |
| -// collectCoverage: true, |
9 |
| -// coverageDirectory: 'coverage', |
| 2 | + // testEnvironment: 'node', // Use the Node.js environment for testing |
| 3 | + // roots: ['<rootDir>/controllers'], // Set the root directory for test files |
10 | 4 |
|
11 |
| -// // Specify the test path patterns to ignore frontend tests |
12 |
| -// testPathIgnorePatterns: ['/node_modules/', '/__tests__/'], |
13 |
| -// }; |
| 5 | + // testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', |
14 | 6 |
|
15 |
| -// ======= |
| 7 | + // // Code coverage settings |
| 8 | + // collectCoverage: true, |
| 9 | + // coverageDirectory: 'coverage', |
| 10 | + |
| 11 | + // // Specify the test path patterns to ignore frontend tests |
| 12 | + // testPathIgnorePatterns: ['/node_modules/', '/__tests__/'], |
| 13 | + // }; |
| 14 | + |
| 15 | + // ======= |
16 | 16 | roots: ['<rootDir>'], // Set the root directory for test files (adjust this path to your test folder)
|
17 | 17 |
|
18 | 18 | testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
|
19 | 19 |
|
20 | 20 | // Code coverage settings
|
21 | 21 | collectCoverage: true,
|
22 | 22 | coverageDirectory: 'coverage',
|
23 |
| - |
24 | 23 | // Specify the test path patterns to ignore (frontend tests)
|
25 | 24 | testPathIgnorePatterns: ['/node_modules/', '/__tests__/'],
|
26 | 25 | };
|
27 |
| - |
0 commit comments