forked from ExtraHorizon/javascript-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
41 lines (41 loc) · 1.06 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
verbose: true,
testEnvironment: 'node',
setupFiles: ['dotenv/config', './jest/setup.js'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
preset: 'ts-jest',
testRegex: '.*(\\.test|tests).*\\.(ts|js)$',
// setupFiles: [
// "<rootDir>/tests/__helpers__/beforeEachSuite.ts"
// ],
testPathIgnorePatterns: [
'/node_modules/',
'/tests/__helpers__/',
'/tests/e2e/',
'/build/',
],
collectCoverage: true,
coverageDirectory: 'test-results/coverage',
coveragePathIgnorePatterns: ['src/rql/parser.ts'],
reporters: [
'default',
[
'jest-junit',
{
outputDirectory: 'test-results',
outputName: 'jest-junit.xml',
},
],
[
'jest-stare',
{
resultDir: 'test-results',
reportTitle: 'Test report generated with jest-stare!',
additionalResultsProcessors: ['jest-junit'],
coverageLink: 'coverage/lcov-report/index.html',
jestStareConfigJson: 'jest-stare.json',
jestGlobalConfigJson: 'globalStuff.json',
},
],
],
};