From 58c143780e63c52b7b6fae359e9fb384bf7462c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Viricel?= Date: Tue, 16 Jan 2024 17:07:31 +0100 Subject: [PATCH] fix: cypress config CJS require --- cypress.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress.config.ts b/cypress.config.ts index fe9201a36..242d1dec1 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,4 +1,5 @@ import { defineConfig } from 'cypress' +import installLogsPrinter from 'cypress-terminal-report/src/installLogsPrinter' import htmlvalidate from 'cypress-html-validate/plugin' export default defineConfig({ @@ -6,7 +7,7 @@ export default defineConfig({ baseUrl: 'http://127.0.0.1:3000', retries: 2, setupNodeEvents(on, _config) { - require('cypress-terminal-report/src/installLogsPrinter')(on) + installLogsPrinter(on) htmlvalidate.install( on, @@ -28,7 +29,7 @@ export default defineConfig({ '.category-selector', '.cookie__bar__buttons', ], - } + }, ) }, },