File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,3 +3,13 @@ module.exports = {
3
3
'test/test.js'
4
4
]
5
5
} ;
6
+
7
+ // add coverage options when running 'npx c8 mocha'
8
+ if ( process . env . NODE_V8_COVERAGE ) {
9
+ Object . assign ( module . exports , {
10
+ fullTrace : true ,
11
+ require : [
12
+ 'source-map-support/register'
13
+ ]
14
+ } ) ;
15
+ }
Original file line number Diff line number Diff line change 23
23
},
24
24
"types" : " types/runtime/index.d.ts" ,
25
25
"scripts" : {
26
- "test" : " mocha --config .mocharc.js " ,
26
+ "test" : " mocha" ,
27
27
"test:unit" : " mocha --require sucrase/register --recursive src/**/__test__.ts" ,
28
- "quicktest" : " mocha --config .mocharc.js " ,
29
- "precoverage" : " c8 mocha --config .mocharc.coverage.js " ,
28
+ "quicktest" : " mocha" ,
29
+ "precoverage" : " c8 mocha" ,
30
30
"coverage" : " c8 report --reporter=text-lcov > coverage.lcov && c8 report --reporter=html" ,
31
31
"codecov" : " codecov" ,
32
32
"precodecov" : " npm run coverage" ,
You can’t perform that action at this time.
0 commit comments