escover 2.5.0 → 2.5.2
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 +11 -0
- package/README.md +1 -1
- package/lib/formatters/files.js +1 -1
- package/lib/instrument/plugin-mark/index.js +3 -1
- package/package.json +3 -3
package/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -118,7 +118,7 @@ If you want to disable coverage on status code without erroring, use `ESCOVER_SU
|
|
|
118
118
|
import {SKIPED} from 'supertape/exit-codes';
|
|
119
119
|
|
|
120
120
|
const env = {
|
|
121
|
-
ESCOVER_SUCCESS_EXIT_CODE:
|
|
121
|
+
ESCOVER_SUCCESS_EXIT_CODE: SKIPED,
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
export default {
|
package/lib/formatters/files.js
CHANGED
|
@@ -79,7 +79,7 @@ function parseCoverageFile(coverageFile) {
|
|
|
79
79
|
const files = [];
|
|
80
80
|
|
|
81
81
|
for (const {name, lines} of coverageFile) {
|
|
82
|
-
const filename = name.replace(CWD
|
|
82
|
+
const filename = name.replace(`${CWD}/`, '');
|
|
83
83
|
const uncoveredLines = parseUncoveredLines(lines);
|
|
84
84
|
|
|
85
85
|
const linesCount = keys(lines).length;
|
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
import {addMarkToArgument} from './argument.js';
|
|
8
8
|
import {addMarkToArrowFunction} from './arrow.js';
|
|
9
9
|
|
|
10
|
+
const noop = () => {};
|
|
11
|
+
|
|
10
12
|
const {
|
|
11
13
|
NumericLiteral,
|
|
12
14
|
SequenceExpression,
|
|
@@ -42,7 +44,7 @@ export const fix = (path, {options}) => {
|
|
|
42
44
|
|
|
43
45
|
const {
|
|
44
46
|
c4 = {
|
|
45
|
-
init:
|
|
47
|
+
init: noop,
|
|
46
48
|
},
|
|
47
49
|
} = options;
|
|
48
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "escover",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "Coverage for EcmaScript Modules",
|
|
6
6
|
"main": "lib/escover.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"montag": "^1.2.1",
|
|
48
48
|
"once": "^1.4.0",
|
|
49
49
|
"picomatch": "^2.3.1",
|
|
50
|
-
"putout": "^
|
|
50
|
+
"putout": "^29.0.0",
|
|
51
51
|
"strip-ansi": "^7.0.1",
|
|
52
52
|
"table": "^6.8.0",
|
|
53
53
|
"try-catch": "^3.0.0",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"eslint-plugin-n": "^15.2.4",
|
|
67
67
|
"eslint-plugin-putout": "^16.0.0",
|
|
68
68
|
"madrun": "^9.0.0",
|
|
69
|
-
"supertape": "^
|
|
69
|
+
"supertape": "^8.0.1"
|
|
70
70
|
}
|
|
71
71
|
}
|