File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 12
12
}
13
13
}
14
14
]
15
- ]
15
+ ],
16
+ "env" : {
17
+ "test" : {
18
+ "plugins" : [ " istanbul" ]
19
+ }
20
+ }
16
21
}
Original file line number Diff line number Diff line change 18
18
"@babel/preset-env" : " ^7.3.1" ,
19
19
"@babel/register" : " ^7.0.0" ,
20
20
"babel-plugin-add-module-exports" : " ^1.0.0" ,
21
+ "babel-plugin-istanbul" : " ^5.1.4" ,
21
22
"chai" : " ^4.2.0" ,
22
23
"eslint" : " ^5.14.1" ,
23
24
"eslint-config-canonical" : " ^16.1.0" ,
27
28
"husky" : " ^1.3.1" ,
28
29
"marked" : " ^0.6.1" ,
29
30
"mocha" : " ^6.0.1" ,
31
+ "nyc" : " ^14.1.1" ,
30
32
"semantic-release" : " ^15.13.3"
31
33
},
32
34
"engines" : {
58
60
"build" : " rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps" ,
59
61
"create-readme" : " gitdown ./.README/README.md --output-file ./README.md && npm run add-assertions" ,
60
62
"lint" : " eslint ./src ./test" ,
61
- "test" : " mocha --recursive --require @babel/register --reporter progress"
63
+ "test" : " BABEL_ENV=test nyc --reporter text-summary mocha --recursive --require @babel/register --reporter progress"
64
+ },
65
+ "nyc" : {
66
+ "require" : [
67
+ " @babel/register"
68
+ ],
69
+ "sourceMap" : false ,
70
+ "instrument" : false ,
71
+ "include" : [
72
+ " src/"
73
+ ]
62
74
},
63
75
"version" : " 1.0.0"
64
76
}
You can’t perform that action at this time.
0 commit comments