forked from omedym/etk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.integration.config.js
60 lines (60 loc) · 1.8 KB
/
jest.integration.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = {
preset: 'ts-jest',
collectCoverageFrom: [
'**/*.{ts,tsx,js,jsx}',
'!**/node_modules/**',
],
coverageDirectory: process.env.COVERAGE_DIR,
haste: {
enableSymlinks: true,
},
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/'],
testMatch: [
// '**/*.{spec,test}.{ts,tsx}',
// '**/*.unit.{spec,test}.{ts,tsx}',
'**/*.integration.test.{ts,tsx}',
],
transform: {
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
'^.+\\.tsx?$': [
'ts-jest',
{
// tsconfig: 'tsconfig.bazel.json',
// KEEP IN SYNC WITH `tsconfig.bazel.json`
tsconfig: {
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"composite": false,
"declaration": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
// "importHelpers": true,
"incremental": true,
"inlineSourceMap": true,
// TODO: latest code doesn't build because the usage of `Blob` somewhere
// in the dependency graph. By now we simply add "DOM" api, but ideally
// we should figure out why this is being used at the server side.
"lib": [
"ESNext",
"DOM"
],
"module": "CommonJS",
"moduleResolution": "Node",
"resolveJsonModule": true,
"rootDir": ".",
// "skipDefaultLibCheck": false,
// "skipLibCheck": false,
"strict": true,
"strictPropertyInitialization": true,
"target": "ESNext"
//"types": ["node"]
},
},
],
},
verbose: false,
};