@vitest/coverage-istanbul 0.25.6 → 0.25.8
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.
@@ -1,11 +1,13 @@
|
|
1
1
|
const COVERAGE_STORE_KEY = "__VITEST_COVERAGE__";
|
2
2
|
|
3
3
|
async function getProvider() {
|
4
|
-
const { IstanbulCoverageProvider } = await import('./provider-
|
4
|
+
const { IstanbulCoverageProvider } = await import('./provider-6d905190.js');
|
5
5
|
return new IstanbulCoverageProvider();
|
6
6
|
}
|
7
7
|
function takeCoverage() {
|
8
|
-
|
8
|
+
const coverage = globalThis[COVERAGE_STORE_KEY];
|
9
|
+
globalThis[COVERAGE_STORE_KEY] = {};
|
10
|
+
return coverage;
|
9
11
|
}
|
10
12
|
|
11
13
|
export { COVERAGE_STORE_KEY as C, getProvider as g, takeCoverage as t };
|
package/dist/index.d.ts
CHANGED
@@ -187,7 +187,7 @@ interface AcornNode {
|
|
187
187
|
type: string;
|
188
188
|
}
|
189
189
|
|
190
|
-
|
190
|
+
type Threshold = 'lines' | 'functions' | 'statements' | 'branches';
|
191
191
|
interface TestExclude {
|
192
192
|
new (opts: {
|
193
193
|
cwd?: string | string[];
|
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export { g as getProvider, t as takeCoverage } from './index-
|
1
|
+
export { g as getProvider, t as takeCoverage } from './index-e66267cd.js';
|
@@ -7,7 +7,7 @@ import libCoverage from 'istanbul-lib-coverage';
|
|
7
7
|
import libSourceMaps from 'istanbul-lib-source-maps';
|
8
8
|
import { createInstrumenter } from 'istanbul-lib-instrument';
|
9
9
|
import _TestExclude from 'test-exclude';
|
10
|
-
import { C as COVERAGE_STORE_KEY } from './index-
|
10
|
+
import { C as COVERAGE_STORE_KEY } from './index-e66267cd.js';
|
11
11
|
|
12
12
|
function normalizeWindowsPath(input = "") {
|
13
13
|
if (!input.includes("\\")) {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/coverage-istanbul",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.25.
|
4
|
+
"version": "0.25.8",
|
5
5
|
"description": "Istanbul coverage provider for Vitest",
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
7
7
|
"license": "MIT",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"istanbul-lib-source-maps": "^4.0.1",
|
44
44
|
"istanbul-reports": "^3.1.5",
|
45
45
|
"test-exclude": "^6.0.0",
|
46
|
-
"vitest": "0.25.
|
46
|
+
"vitest": "0.25.8"
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
49
|
"@types/istanbul-lib-coverage": "^2.0.4",
|