Skip to content

Commit efa7d81

Browse files
rubiinCopilot
andcommitted
chore: add tsconfig.spec.json for Jest configuration and update related settings
Co-authored-by: Copilot <copilot@github.com>
1 parent 7fa02df commit efa7d81

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"^.+\\.(t|j)s$": [
9595
"ts-jest",
9696
{
97+
"tsconfig": "<rootDir>/../tsconfig.spec.json",
9798
"diagnostics": {
9899
"ignoreCodes": [
99100
151002

tests/jest-e2e.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"^.+\\.(t|j)s$": [
88
"ts-jest",
99
{
10-
"tsconfig": "<rootDir>/tsconfig.json"
10+
"tsconfig": "<rootDir>/../tsconfig.spec.json",
11+
"diagnostics": {
12+
"ignoreCodes": [151002]
13+
}
1114
}
1215
]
1316
}

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "@rubiin/tsconfig/tsconfig.json",
33
"compilerOptions": {
4-
"sourceMap": true,
54
"declaration": true,
65
"declarationMap": true,
76
"rootDir": "./src",

tsconfig.spec.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"outDir": "./.ts-jest",
6+
"types": ["node", "jest"],
7+
"isolatedModules": true,
8+
"noEmit": false
9+
},
10+
"include": [
11+
"src/**/*.ts",
12+
"tests/**/*.ts"
13+
],
14+
"exclude": [
15+
"node_modules",
16+
"dist"
17+
]
18+
}

0 commit comments

Comments
 (0)