File tree 1 file changed +24
-1
lines changed 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 42
42
"build-gh-pages" : " npm run build-docs" ,
43
43
"ci:test" : " npm run lint-config && npm run lint && npm run cover" ,
44
44
"commit-msg" : " commitlint --edit" ,
45
- "cover" : " c8 --all --src src --reporter=lcov npm test" ,
45
+ "cover" : " NODE_ENV=cover c8 --all --src src --reporter=lcov npm test" ,
46
46
"debug" : " NODE_ENV=debug npm run test -- -st --fail-fast" ,
47
47
"dev" : " npm run lint-config-and-fix && npm run lint-and-fix && npm run cover -- -- -st --fail-fast" ,
48
48
"install-hooks" : " husky install" ,
146
146
]
147
147
]
148
148
},
149
+ "cover" : {
150
+ "sourceMaps" : " inline" ,
151
+ "presets" : [
152
+ [
153
+ " @babel/preset-env" ,
154
+ {
155
+ "targets" : " current node"
156
+ }
157
+ ]
158
+ ],
159
+ "plugins" : [
160
+ [
161
+ " transform-remove-console" ,
162
+ {
163
+ "exclude" : [
164
+ " log" ,
165
+ " error" ,
166
+ " warn"
167
+ ]
168
+ }
169
+ ]
170
+ ]
171
+ },
149
172
"development" : {
150
173
"presets" : [
151
174
" babel-preset-power-assert"
You can’t perform that action at this time.
0 commit comments