docbrown/cypress.config.js
2023-03-02 09:40:06 -05:00

20 lines
521 B
JavaScript

/* eslint-env node */
const { defineConfig } = require('cypress');
module.exports = defineConfig({
e2e: {
baseUrl: 'http://localhost:1234',
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config);
},
screenshotsFolder: 'tmp/cypress_screenshots',
defaultCommandTimeout: 10000,
trashAssetsBeforeRuns: false,
video: false,
retries: 3,
reporter: 'junit',
reporterOptions: {
mochaFile: 'cypress/results/results-[hash].xml',
},
},
});