diff --git a/cypress.config.ts b/cypress.config.ts index 0038ebf..42e4a9c 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,12 +1,13 @@ import { defineConfig } from "cypress"; import createBundler from "@bahmutov/cypress-esbuild-preprocessor"; import createEsbuildIstanbulPlugin from "./cypress/plugins/esbuild-istanbul"; +import codeCoverageTask from "@cypress/code-coverage/task"; async function setupNodeEvents( on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions ): Promise { - await require("@cypress/code-coverage/task")(on, config); + codeCoverageTask(on, config); on( "file:preprocessor",