19 lines
545 B
JavaScript
19 lines
545 B
JavaScript
import { defineConfig } from "cypress";
|
|
import { initPlugin } from "cypress-plugin-snapshots/plugin";
|
|
|
|
export default defineConfig({
|
|
e2e: {
|
|
baseUrl: "http://127.0.0.1:5173/",
|
|
screenshotOnRunFailure: true, // Capture screenshots on test failure
|
|
setupNodeEvents(on, config) {
|
|
initPlugin(on, config);
|
|
return config;
|
|
},
|
|
excludeSpecPattern: [
|
|
"**/__snapshots__/*",
|
|
"**/__image_snapshots__/*"
|
|
]
|
|
},
|
|
screenshotsFolder: "cypress/screenshots"
|
|
});
|