Skip to content

Commit c174fb4

Browse files
Adjust ts-node setup
1 parent 6d0206f commit c174fb4

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.mocharc.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
"bail": true,
44
"exit": true,
55
"timeout": 20000,
6-
"require": ["ts-node/register/transpile-only"]
7-
}
6+
"require": [
7+
"ts-node/register"
8+
]
9+
}

tsconfig.test.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"moduleResolution": "node10",
5-
"module": "CommonJS"
5+
"module": "CommonJS",
6+
"strict": false,
67
},
7-
"include": ["./test/**/*"]
8-
}
8+
"ts-node": {
9+
"transpileOnly": true,
10+
"logError": true,
11+
},
12+
"include": [
13+
"./test/**/*"
14+
]
15+
}

0 commit comments

Comments
 (0)