escover 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog +6 -0
- package/README.md +23 -1
- package/lib/cli/cli.js +3 -0
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -95,15 +95,37 @@ Experimental `loaders` supports only one, for now. So [zenload](https://github.c
|
|
|
95
95
|
Install it with:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
npm i escover
|
|
98
|
+
npm i escover
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
Then run:
|
|
102
102
|
|
|
103
|
+
```sh
|
|
104
|
+
escover npm test
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
This is the same as:
|
|
108
|
+
|
|
103
109
|
```sh
|
|
104
110
|
NODE_OPTIONS="'--loader zenlend'" ZENLOAD='escover,mock-import' escover npm test
|
|
105
111
|
```
|
|
106
112
|
|
|
113
|
+
## Env
|
|
114
|
+
|
|
115
|
+
If you want to disable coverage on status code without erroring, use `ESCOVER_SUCCESS_EXIT_CODE`:
|
|
116
|
+
|
|
117
|
+
```js
|
|
118
|
+
import {SKIPED} from 'supertape/exit-codes';
|
|
119
|
+
|
|
120
|
+
const env = {
|
|
121
|
+
ESCOVER_SUCCESS_EXIT_CODE: SKIPED,
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export default {
|
|
125
|
+
'test': () => [env, `escover tape 'test/**/*.js' 'lib/**/*.spec.js'`],
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
107
129
|
## What should I know about `lcov`?
|
|
108
130
|
|
|
109
131
|
Format used by 🎩**ESCover** located in `coverage/lcov.info`.
|
package/lib/cli/cli.js
CHANGED