Skip to content

Commit 01012f9

Browse files
committed
Update cypress.config.ts
1 parent 49bff6e commit 01012f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cypress.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { defineConfig } from "cypress";
22
import createBundler from "@bahmutov/cypress-esbuild-preprocessor";
33
import createEsbuildIstanbulPlugin from "./cypress/plugins/esbuild-istanbul";
4+
import codeCoverageTask from "@cypress/code-coverage/task";
45

56
async function setupNodeEvents(
67
on: Cypress.PluginEvents,
78
config: Cypress.PluginConfigOptions
89
): Promise<Cypress.PluginConfigOptions> {
9-
await require("@cypress/code-coverage/task")(on, config);
10+
codeCoverageTask(on, config);
1011

1112
on(
1213
"file:preprocessor",

0 commit comments

Comments
 (0)