-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (34 loc) · 868 Bytes
/
jest.config.js
File metadata and controls
34 lines (34 loc) · 868 Bytes
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
/**
* @type {import('@jest/types').Config.ProjectConfig}
*/
module.exports = {
preset: 'ts-jest',
testTimeout: 15000,
testEnvironment: 'node',
transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '\\.(test|spec)\\.[t]sx?$',
testPathIgnorePatterns: ['/sdk-client/'],
moduleFileExtensions: ['ts', 'js', 'json'],
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: [
'/sdk-client/',
'/node_modules/',
'/dist/',
'/generated/',
],
watchPlugins: ['jest-watch-typeahead/filename'],
reporters: [
'default',
process.env.CI === 'true'
? [
'jest-junit',
{ outputName: 'results.xml', outputDirectory: 'test-results' },
]
: null,
].filter(Boolean),
setupFiles: ['<rootDir>/.jest/setEnvVars.js'],
setupFilesAfterEnv: ['jest-extended/all'],
}