@vitest/coverage-istanbul 1.2.1 → 1.3.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/dist/provider.d.ts +2 -2
- package/dist/provider.js +3 -1
- package/package.json +3 -3
package/dist/provider.d.ts
CHANGED
@@ -16,8 +16,8 @@ interface TestExclude {
|
|
16
16
|
excludeNodeModules?: boolean;
|
17
17
|
relativePath?: boolean;
|
18
18
|
}): {
|
19
|
-
shouldInstrument(filePath: string)
|
20
|
-
glob(cwd: string)
|
19
|
+
shouldInstrument: (filePath: string) => boolean;
|
20
|
+
glob: (cwd: string) => Promise<string[]>;
|
21
21
|
};
|
22
22
|
}
|
23
23
|
declare const DEFAULT_PROJECT: unique symbol;
|
package/dist/provider.js
CHANGED
@@ -156,7 +156,9 @@ class IstanbulCoverageProvider extends BaseCoverageProvider {
|
|
156
156
|
extension: this.options.extension,
|
157
157
|
relativePath: !this.options.allowExternal
|
158
158
|
});
|
159
|
-
|
159
|
+
const shard = this.ctx.config.shard;
|
160
|
+
const tempDirectory = `.tmp${shard ? `-${shard.index}-${shard.count}` : ""}`;
|
161
|
+
this.coverageFilesDirectory = resolve(this.options.reportsDirectory, tempDirectory);
|
160
162
|
}
|
161
163
|
resolveOptions() {
|
162
164
|
return this.options;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/coverage-istanbul",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.
|
4
|
+
"version": "1.3.0",
|
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": "
|
40
|
+
"vitest": "1.3.0"
|
41
41
|
},
|
42
42
|
"dependencies": {
|
43
43
|
"debug": "^4.3.4",
|
@@ -58,7 +58,7 @@
|
|
58
58
|
"@types/istanbul-lib-source-maps": "^4.0.4",
|
59
59
|
"@types/istanbul-reports": "^3.0.4",
|
60
60
|
"pathe": "^1.1.1",
|
61
|
-
"vitest": "1.
|
61
|
+
"vitest": "1.3.0"
|
62
62
|
},
|
63
63
|
"scripts": {
|
64
64
|
"build": "rimraf dist && rollup -c",
|