@vitest/coverage-istanbul 3.0.5 → 3.0.6
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/dist/index.d.ts +3 -13
- package/dist/index.js +2 -2
- package/dist/provider.d.ts +2 -2
- package/dist/provider.js +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
@@ -1,15 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import 'magicast';
|
3
|
-
import 'vitest/node';
|
4
|
-
import 'istanbul-lib-coverage';
|
5
|
-
import 'istanbul-lib-instrument';
|
6
|
-
import 'test-exclude';
|
7
|
-
import 'vitest/coverage';
|
1
|
+
import { CoverageProviderModule } from 'vitest/node';
|
8
2
|
|
9
|
-
declare const
|
10
|
-
takeCoverage(): any;
|
11
|
-
startCoverage(): void;
|
12
|
-
getProvider(): Promise<IstanbulCoverageProvider>;
|
13
|
-
};
|
3
|
+
declare const mod: CoverageProviderModule;
|
14
4
|
|
15
|
-
export {
|
5
|
+
export { mod as default };
|
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { C as COVERAGE_STORE_KEY } from './constants-BCJfMgEg.js';
|
2
2
|
|
3
|
-
|
3
|
+
const mod = {
|
4
4
|
takeCoverage() {
|
5
5
|
return globalThis[COVERAGE_STORE_KEY];
|
6
6
|
},
|
@@ -33,4 +33,4 @@ var index = {
|
|
33
33
|
}
|
34
34
|
};
|
35
35
|
|
36
|
-
export {
|
36
|
+
export { mod as default };
|
package/dist/provider.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { ProxifiedModule } from 'magicast';
|
2
2
|
import { ResolvedCoverageOptions, CoverageProvider, Vitest, ReportContext } from 'vitest/node';
|
3
3
|
import libCoverage, { CoverageMap } from 'istanbul-lib-coverage';
|
4
4
|
import { Instrumenter } from 'istanbul-lib-instrument';
|
@@ -18,7 +18,7 @@ declare class IstanbulCoverageProvider extends BaseCoverageProvider<ResolvedCove
|
|
18
18
|
createCoverageMap(): libCoverage.CoverageMap;
|
19
19
|
generateCoverage({ allTestsRun }: ReportContext): Promise<CoverageMap>;
|
20
20
|
generateReports(coverageMap: CoverageMap, allTestsRun: boolean | undefined): Promise<void>;
|
21
|
-
parseConfigModule(configFilePath: string): Promise<
|
21
|
+
parseConfigModule(configFilePath: string): Promise<ProxifiedModule<any>>;
|
22
22
|
private getCoverageMapForUncoveredFiles;
|
23
23
|
}
|
24
24
|
|
package/dist/provider.js
CHANGED
@@ -107,7 +107,7 @@ const isAbsolute = function(p) {
|
|
107
107
|
return _IS_ABSOLUTE_RE.test(p);
|
108
108
|
};
|
109
109
|
|
110
|
-
var version = "3.0.
|
110
|
+
var version = "3.0.6";
|
111
111
|
|
112
112
|
const debug = createDebug("vitest:coverage");
|
113
113
|
class IstanbulCoverageProvider extends BaseCoverageProvider {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/coverage-istanbul",
|
3
3
|
"type": "module",
|
4
|
-
"version": "3.0.
|
4
|
+
"version": "3.0.6",
|
5
5
|
"description": "Istanbul coverage provider for Vitest",
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
7
7
|
"license": "MIT",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"dist"
|
38
38
|
],
|
39
39
|
"peerDependencies": {
|
40
|
-
"vitest": "3.0.
|
40
|
+
"vitest": "3.0.6"
|
41
41
|
},
|
42
42
|
"dependencies": {
|
43
43
|
"@istanbuljs/schema": "^0.1.3",
|
@@ -59,8 +59,8 @@
|
|
59
59
|
"@types/istanbul-lib-source-maps": "^4.0.4",
|
60
60
|
"@types/istanbul-reports": "^3.0.4",
|
61
61
|
"@types/test-exclude": "^6.0.2",
|
62
|
-
"pathe": "^2.0.
|
63
|
-
"vitest": "3.0.
|
62
|
+
"pathe": "^2.0.3",
|
63
|
+
"vitest": "3.0.6"
|
64
64
|
},
|
65
65
|
"scripts": {
|
66
66
|
"build": "rimraf dist && rollup -c",
|