Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
cypress use module syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Nov 17, 2023
1 parent 031368b commit c397eaa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions 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 c397eaa

Please sign in to comment.