vbv/cypress.config.mjs

30 lines
703 B
JavaScript

import { defineConfig } from "cypress";
import { cloudPlugin } from "cypress-cloud/plugin";
import tasks from "./cypress/plugins/index.mjs";
export default defineConfig({
projectId: "RVEZS1",
chromeWebSecurity: false,
watchForFileChanges: false,
video: false,
viewportWidth: 1280,
viewportHeight: 720,
retries: {
runMode: 2,
openMode: 0,
},
reporter: "junit",
reporterOptions: {
mochaFile: "cypress/test-reports/cypress-results-[hash].xml",
toConsole: true,
},
e2e: {
// experimentalSessionAndOrigin: true,
setupNodeEvents(on, config) {
tasks(on, config);
return cloudPlugin(on, config);
},
baseUrl: "http://localhost:8001",
},
});