@vitest/coverage-c8
Advanced tools
Comparing version 0.29.7 to 0.29.8
@@ -1,25 +0,14 @@ | ||
import { Profiler } from 'inspector'; | ||
import { BaseCoverageProvider } from 'vitest/coverage'; | ||
import { CoverageProvider, AfterSuiteRunMeta, ReportContext, ResolvedCoverageOptions } from 'vitest'; | ||
import { Vitest } from 'vitest/node'; | ||
import { C8CoverageProvider } from './provider.js'; | ||
import 'inspector'; | ||
import 'vitest/coverage'; | ||
import 'vitest'; | ||
import 'vitest/node'; | ||
type Options = ResolvedCoverageOptions<'c8'>; | ||
declare class C8CoverageProvider extends BaseCoverageProvider implements CoverageProvider { | ||
name: string; | ||
ctx: Vitest; | ||
options: Options; | ||
coverages: Profiler.TakePreciseCoverageReturnType[]; | ||
initialize(ctx: Vitest): void; | ||
resolveOptions(): Options; | ||
clean(clean?: boolean): Promise<void>; | ||
onAfterSuiteRun({ coverage }: AfterSuiteRunMeta): void; | ||
reportCoverage({ allTestsRun }?: ReportContext): Promise<void>; | ||
} | ||
declare const _default: { | ||
getProvider(): Promise<C8CoverageProvider>; | ||
startCoverage(): void; | ||
takeCoverage(): Promise<unknown>; | ||
stopCoverage(): void; | ||
}; | ||
declare function startCoverage(): void; | ||
declare function takeCoverage(): Promise<unknown>; | ||
declare function stopCoverage(): void; | ||
declare function getProvider(): Promise<C8CoverageProvider>; | ||
export { getProvider, startCoverage, stopCoverage, takeCoverage }; | ||
export { _default as default }; |
@@ -35,7 +35,18 @@ import inspector from 'inspector'; | ||
async function getProvider() { | ||
const { C8CoverageProvider } = await import('./provider-a020853a.js'); | ||
return new C8CoverageProvider(); | ||
} | ||
var coverage = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
startCoverage: startCoverage, | ||
takeCoverage: takeCoverage, | ||
stopCoverage: stopCoverage | ||
}); | ||
export { getProvider, startCoverage, stopCoverage, takeCoverage }; | ||
var index = { | ||
...coverage, | ||
async getProvider() { | ||
const name = "./provider.js"; | ||
const { C8CoverageProvider } = await import(name); | ||
return new C8CoverageProvider(); | ||
} | ||
}; | ||
export { index as default }; |
{ | ||
"name": "@vitest/coverage-c8", | ||
"type": "module", | ||
"version": "0.29.7", | ||
"version": "0.29.8", | ||
"description": "C8 coverage provider for Vitest", | ||
@@ -49,4 +49,4 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"pathe": "^1.1.0", | ||
"vitest": "0.29.7", | ||
"vite-node": "0.29.7" | ||
"vite-node": "0.29.8", | ||
"vitest": "0.29.8" | ||
}, | ||
@@ -53,0 +53,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12298
6
304
1