Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cypress-code-coverage-v8) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cypress-code-coverage-v8
Collects code coverage of your application under test using V8's built in JavaScript code coverage. No need to instrument your application!
Install
npm install -D cypress-code-coverage-v8Note: This plugin assumes that cypress is a peer dependency already installed in your project.
Then add the code below to the supportFile and setupNodeEvents function.
// cypress/support/e2e.{js|ts}
import "cypress-code-coverage-v8/support";// cypress.config.{js|ts}
import { defineConfig } from "cypress";
import cypressV8Coverage from "cypress-code-coverage-v8/task";
export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
cypressV8Coverage(on, config);
// include any other plugin code...
// It's IMPORTANT to return the config object here
return config;
},
baseUrl: "http://localhost:5173/",
},
});