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',
|
|
|
|
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-04-02 23:16:45 +02:00
|
|
|
return 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-04-02 23:16:45 +02:00
|
|
|
});
|