mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
Add Cypress code coverage using Istanbul nyc  --------- Co-authored-by: shelly_goldblit <shelly_goldblit@dell.com> Co-authored-by: Harel M <harel.mazor@gmail.com>
24 lines
513 B
TypeScript
24 lines
513 B
TypeScript
import { defineConfig } from "cypress";
|
|
import { createRequire } from "module";
|
|
const require = createRequire(import.meta.url);
|
|
|
|
export default defineConfig({
|
|
env: {
|
|
codeCoverage: {
|
|
exclude: "cypress/**/*.*",
|
|
},
|
|
},
|
|
e2e: {
|
|
setupNodeEvents(on, config) {
|
|
// implement node event listeners here
|
|
require("@cypress/code-coverage/task")(on, config);
|
|
return config;
|
|
},
|
|
baseUrl: "http://localhost:8888",
|
|
retries: {
|
|
runMode: 2,
|
|
openMode: 0,
|
|
},
|
|
},
|
|
});
|