@vitest/coverage-istanbul 0.28.1 → 0.28.3
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,7 +1,7 @@
|
|
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-6c50226e.js');
|
5
5
|
return new IstanbulCoverageProvider();
|
6
6
|
}
|
7
7
|
function takeCoverage() {
|
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-de988ace.js';
|
@@ -6,7 +6,7 @@ import libCoverage from 'istanbul-lib-coverage';
|
|
6
6
|
import libSourceMaps from 'istanbul-lib-source-maps';
|
7
7
|
import { createInstrumenter } from 'istanbul-lib-instrument';
|
8
8
|
import _TestExclude from 'test-exclude';
|
9
|
-
import { C as COVERAGE_STORE_KEY } from './index-
|
9
|
+
import { C as COVERAGE_STORE_KEY } from './index-de988ace.js';
|
10
10
|
|
11
11
|
function normalizeWindowsPath(input = "") {
|
12
12
|
if (!input || !input.includes("\\")) {
|
@@ -166,7 +166,7 @@ class IstanbulCoverageProvider {
|
|
166
166
|
const map = libCoverage.createCoverageMap(coverage);
|
167
167
|
map.merge(previousCoverageMap);
|
168
168
|
return map;
|
169
|
-
}, {});
|
169
|
+
}, libCoverage.createCoverageMap({}));
|
170
170
|
if (this.options.all && allTestsRun)
|
171
171
|
await this.includeUntestedFiles(mergedCoverage);
|
172
172
|
includeImplicitElseBranches(mergedCoverage);
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/coverage-istanbul",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.28.
|
4
|
+
"version": "0.28.3",
|
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.28.
|
46
|
+
"vitest": "0.28.3"
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
49
|
"@types/istanbul-lib-coverage": "^2.0.4",
|