Skip to content

Commit

Permalink
cypress config: use ES module syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Nov 26, 2023
1 parent acd8e4b commit cdc7ea7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* eslint-disable no-undef */
const { defineConfig } = require('cypress');
const process = require('process');
import { defineConfig } from 'cypress';
import process from 'process';
import cypressMochawesomeReporter from 'cypress-mochawesome-reporter/plugin.js';

module.exports = defineConfig({
export default defineConfig({
video: process.env.BROWSER !== 'firefox',
reporter: 'cypress-multi-reporters',
reporterOptions: {
Expand All @@ -19,7 +20,7 @@ module.exports = defineConfig({
},
e2e: {
setupNodeEvents(on, config) {
require('cypress-mochawesome-reporter/plugin')(on);
cypressMochawesomeReporter(on);
return config;
},
specPattern: 'tests/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
Expand Down

0 comments on commit cdc7ea7

Please sign in to comment.