@vitest/coverage-v8
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -14,4 +14,4 @@ import { BaseCoverageProvider } from 'vitest/coverage'; | ||
}): { | ||
shouldInstrument(filePath: string): boolean; | ||
glob(cwd: string): Promise<string[]>; | ||
shouldInstrument: (filePath: string) => boolean; | ||
glob: (cwd: string) => Promise<string[]>; | ||
}; | ||
@@ -18,0 +18,0 @@ } |
@@ -211,3 +211,5 @@ import { existsSync, promises, writeFileSync } from 'node:fs'; | ||
}); | ||
this.coverageFilesDirectory = resolve(this.options.reportsDirectory, ".tmp"); | ||
const shard = this.ctx.config.shard; | ||
const tempDirectory = `.tmp${shard ? `-${shard.index}-${shard.count}` : ""}`; | ||
this.coverageFilesDirectory = resolve(this.options.reportsDirectory, tempDirectory); | ||
} | ||
@@ -214,0 +216,0 @@ resolveOptions() { |
{ | ||
"name": "@vitest/coverage-v8", | ||
"type": "module", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "V8 coverage provider for Vitest", | ||
@@ -40,3 +40,3 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"peerDependencies": { | ||
"vitest": "^1.0.0" | ||
"vitest": "1.3.0" | ||
}, | ||
@@ -65,4 +65,4 @@ "dependencies": { | ||
"pathe": "^1.1.1", | ||
"vite-node": "1.2.2", | ||
"vitest": "1.2.2" | ||
"vite-node": "1.3.0", | ||
"vitest": "1.3.0" | ||
}, | ||
@@ -69,0 +69,0 @@ "scripts": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
24048
562
1