Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vitest/coverage-c8

Package Overview
Dependencies
Maintainers
3
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/coverage-c8 - npm Package Compare versions

Comparing version 0.29.7 to 0.29.8

dist/provider.d.ts

35

dist/index.d.ts

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc