Skip to content

Commit b2a8d63

Browse files
committed
fix: move options used by ts-jest out of tsconfig
ts-jest uses root tsconfig.json, and options related to strictness and helpers break multiple unit tests.
1 parent dddee19 commit b2a8d63

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

tsconfig.cjs.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4+
"importHelpers": true,
45
"module": "commonjs",
5-
"target": "ES2018"
6+
"noEmitHelpers": true,
7+
"target": "ES2018",
8+
"strict": true
69
}
710
}

tsconfig.es.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4+
"importHelpers": true,
45
"module": "esnext",
5-
"target": "es5"
6+
"noEmitHelpers": true,
7+
"target": "es5",
8+
"strict": true
69
}
710
}

tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
"baseUrl": ".",
44
"downlevelIteration": true,
55
"esModuleInterop": true,
6-
"importHelpers": true,
76
"inlineSourceMap": true,
87
"inlineSources": true,
98
"incremental": true,
109
"lib": ["es2015", "dom"],
1110
"module": "commonjs",
1211
"moduleResolution": "node",
13-
"noEmitHelpers": true,
1412
"noFallthroughCasesInSwitch": true,
1513
"paths": {
1614
"@aws-sdk/*": ["packages/*/src"],
@@ -21,7 +19,6 @@
2119
"preserveConstEnums": true,
2220
"removeComments": true,
2321
"resolveJsonModule": true,
24-
"strict": true,
2522
"target": "es5"
2623
},
2724
"include": ["packages/", "lib/"],

tsconfig.types.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"declaration": true,
55
"emitDeclarationOnly": true,
6-
"removeComments": false
6+
"removeComments": false,
7+
"strict": true
78
}
89
}

0 commit comments

Comments
 (0)