Skip to content

Commit

Permalink
fix: cypress config CJS require
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Jan 16, 2024
1 parent f2d13da commit 58c1437
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { defineConfig } from 'cypress'
import installLogsPrinter from 'cypress-terminal-report/src/installLogsPrinter'
import htmlvalidate from 'cypress-html-validate/plugin'

export default defineConfig({
e2e: {
baseUrl: 'http://127.0.0.1:3000',
retries: 2,
setupNodeEvents(on, _config) {
require('cypress-terminal-report/src/installLogsPrinter')(on)
installLogsPrinter(on)

htmlvalidate.install(
on,
Expand All @@ -28,7 +29,7 @@ export default defineConfig({
'.category-selector',
'.cookie__bar__buttons',
],
}
},
)
},
},
Expand Down

0 comments on commit 58c1437

Please sign in to comment.