Skip to content

Commit

Permalink
update cypress config
Browse files Browse the repository at this point in the history
  • Loading branch information
sksaju committed Nov 6, 2024
1 parent 9037b1a commit 8d42736
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions tests/cypress/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
const { defineConfig } = require('cypress');
const path = require('path');

module.exports = defineConfig({
chromeWebSecurity: false,
fixturesFolder: `${__dirname}/fixtures`,
screenshotsFolder: `${__dirname}/screenshots`,
videosFolder: `${__dirname}/videos`,
downloadsFolder: `${__dirname}/downloads`,
video: false,
fixturesFolder: 'tests/cypress/fixtures',
screenshotsFolder: 'tests/cypress/screenshots',
videosFolder: 'tests/cypress/videos',
downloadsFolder: 'tests/cypress/downloads',
video: true,
reporter: 'mochawesome',
reporterOptions: {
mochaFile: 'mochawesome-[name]',
reportDir: path.join(__dirname, 'reports'),
overwrite: false,
html: false,
json: true,
},
e2e: {
setupNodeEvents(on, config) {
// eslint-disable-next-line import/no-dynamic-require, global-require
return require(`${__dirname}/plugins/index.js`)(on, config);
},
specPattern: `${__dirname}/e2e/*.test.{js,jsx,ts,tsx}`,
supportFile: `${__dirname}/support/index.js`,
specPattern: 'tests/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'tests/cypress/support/index.js',
},
});

0 comments on commit 8d42736

Please sign in to comment.