|
| 1 | +/* |
| 2 | + * For a detailed explanation regarding each configuration property and type check, visit: |
| 3 | + * https://jestjs.io/docs/configuration |
| 4 | + */ |
| 5 | + |
| 6 | +import path from 'path'; |
| 7 | + |
| 8 | +export default { |
| 9 | + // Automatically clear mock calls, instances, contexts and results before every test |
| 10 | + clearMocks: true, |
| 11 | + |
| 12 | + globalSetup: path.join(__dirname, '../../../script/test-global-setup.ts'), |
| 13 | + |
| 14 | + setupFiles: [path.join(__dirname, '../../../script/set-test-env.ts')], |
| 15 | + |
| 16 | + // Indicates whether the coverage information should be collected while executing the test |
| 17 | + collectCoverage: true, |
| 18 | + |
| 19 | + // The directory where Jest should output its coverage files |
| 20 | + coverageDirectory: path.join(__dirname, '../../../.test/coverage'), |
| 21 | + |
| 22 | + // An array of regexp pattern strings used to skip coverage collection |
| 23 | + coveragePathIgnorePatterns: ['/node_modules/', '/tests/'], |
| 24 | + |
| 25 | + // Indicates which provider should be used to instrument code for coverage |
| 26 | + coverageProvider: 'v8', |
| 27 | + |
| 28 | + // A list of reporter names that Jest uses when writing coverage reports |
| 29 | + coverageReporters: ['json', 'text', 'lcov', 'clover'], |
| 30 | + |
| 31 | + // A map from regular expressions to paths to transformers |
| 32 | + transform: { '^.+\\.tsx?$': 'ts-jest' }, |
| 33 | + |
| 34 | + testTimeout: 300000, |
| 35 | + |
| 36 | + testEnvironment: 'jsdom', |
| 37 | +}; |
0 commit comments