2023-04-02 23:16:45 +02:00
|
|
|
import { defineConfig } from 'cypress';
|
2023-04-02 20:20:59 +02:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
env: {
|
|
|
|
NODE_ENV: 'test',
|
|
|
|
},
|
|
|
|
fixturesFolder: 'test/cypress/fixtures',
|
|
|
|
screenshotsFolder: 'test/cypress/screenshots',
|
2023-12-22 21:15:35 +01:00
|
|
|
video: false,
|
2023-04-02 20:20:59 +02:00
|
|
|
videosFolder: 'test/cypress/videos',
|
|
|
|
e2e: {
|
|
|
|
// We've imported your old cypress plugins here.
|
|
|
|
// You may want to clean this up later by importing these.
|
|
|
|
setupNodeEvents(on, config) {
|
2023-08-08 21:17:09 +02:00
|
|
|
/**
|
|
|
|
* Plugin for cypress that adds better terminal output for easier debugging.
|
|
|
|
* Prints cy commands, browser console logs, cy.request and cy.intercept data. Great for your pipelines.
|
|
|
|
* https://github.com/archfz/cypress-terminal-report
|
|
|
|
*/
|
|
|
|
require('cypress-terminal-report/src/installLogsPrinter')(on);
|
|
|
|
|
|
|
|
require('./test/cypress/plugins/index.ts')(on, config);
|
2023-04-02 20:20:59 +02:00
|
|
|
},
|
|
|
|
specPattern: 'test/cypress/tests/**/*.cy.{js,jsx,ts,tsx}',
|
|
|
|
supportFile: 'test/cypress/support/index.ts',
|
|
|
|
},
|
2023-08-08 21:17:09 +02:00
|
|
|
'retries': {
|
|
|
|
// Configure retry attempts for `cypress run`
|
|
|
|
'runMode': 2,
|
|
|
|
// Configure retry attempts for `cypress open`
|
|
|
|
'openMode': 0,
|
|
|
|
},
|
2023-04-02 23:16:45 +02:00
|
|
|
});
|