Are there any good guides on how to get Code Cover...
# component-testing
c
Are there any good guides on how to get Code Coverage working in Component tests? I have it fully working in e2e but nothing happens when I run component tests. my cypress.config has the following component block in it:
Copy code
component: {
  devServer: {
    framework: "react",
    bundler: "vite",
  },
  setupNodeEvents(on, config) {
    codeCoverageTask(on, config);
    return config;
  },
},
I'n my vite config I have the istanbul plugin and it's configured to instrument my code, and as mentioned works well when I run it in e2e.
2 Views