File tree Expand file tree Collapse file tree 4 files changed +25
-24
lines changed Expand file tree Collapse file tree 4 files changed +25
-24
lines changed Original file line number Diff line number Diff line change
1
+ # mocha settings
2
+ require :
3
+ - ts-node/register
4
+ - source-map-support/register
5
+ recursive : true
6
+ color : true
7
+ extension :
8
+ - ts
9
+ - test.ts
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ extends: "@istanbuljs/nyc-config-typescript"
3
3
all : true
4
4
5
5
reporter :
6
- - html
7
- - lcovonly
8
- - clover
9
- # those 2 are for commandline outputs
10
- - text
11
- - text-summary
6
+ - html
7
+ - lcovonly
8
+ - clover
9
+ # those 2 are for commandline outputs
10
+ - text
11
+ - text-summary
12
12
report-dir : coverage
13
13
14
14
# Coverage gates
Original file line number Diff line number Diff line change 21
21
"request" : " launch" ,
22
22
"program" : " ${workspaceFolder}/node_modules/mocha/bin/_mocha" ,
23
23
"args" : [
24
- " --no-timeouts" , " --colors" ,
25
- // according to https://github.com/istanbuljs/istanbuljs/tree/master/packages/nyc-config-typescript
26
- " --require" , " ts-node/register" , " --recursive" ,
27
- " --exit" ,
28
- " ${workspaceFolder}/src/**/*.test.ts" ,
29
- " ${workspaceFolder}/test/**/*.ts"
24
+ " ${workspaceFolder}/src" ,
25
+ " ${workspaceFolder}/test"
30
26
],
31
27
"internalConsoleOptions" : " openOnSessionStart"
32
28
},
36
32
"request" : " launch" ,
37
33
"program" : " ${workspaceFolder}/node_modules/mocha/bin/_mocha" ,
38
34
"args" : [
39
- " --no-timeouts" , " --colors" ,
40
- // according to https://github.com/istanbuljs/istanbuljs/tree/master/packages/nyc-config-typescript
41
- " --require" , " ts-node/register" , " --recursive" ,
42
- " --exit" ,
43
35
" ${workspaceFolder}/**/${fileBasenameNoExtension}.ts"
44
36
],
45
37
"internalConsoleOptions" : " openOnSessionStart"
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"purge" : " rm -rf node_modules package-lock.json && npm run clean" ,
8
8
"clean" : " rm -rf build .nyc_output coverage" ,
9
- "lint" : " npx eslint src" ,
10
- "build" : " npm run clean && npm run lint && npx tsc -p ." ,
9
+ "lint" : " eslint src" ,
10
+ "build" : " npm run clean && npm run lint && tsc -p ." ,
11
11
"start" : " npm run build && node build/app.js" ,
12
- "test" : " npm run lint && nyc npx mocha src/**/*.test.ts test/**/*.ts --exit --require ts-node/register --require source-map-support/register --recursive " ,
12
+ "test" : " npm run lint && nyc mocha src test" ,
13
13
"docker" : " docker build -t typescript-node-template ."
14
14
},
15
15
"repository" : {
16
16
"type" : " git" ,
17
17
"url" : " git+https://github.com/Flowkap/typescript-node-template.git"
18
18
},
19
19
"keywords" : [
20
- " node" ,
21
- " node.js" ,
22
- " typescript" ,
23
- " ts" ,
20
+ " node" , " node.js" ,
21
+ " typescript" , " ts" ,
24
22
" service" ,
25
- " template"
23
+ " template" ,
24
+ " mocha" , " chai" , " nyc" ,
25
+ " ts-node" , " sinon" , " eslint" , " sonarts"
26
26
],
27
27
"author" : " flowkap" ,
28
28
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments