diff --git a/cypress.config.ts b/cypress.config.ts index 5c07d6a..0cfd6c1 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -5,22 +5,12 @@ export default defineConfig({ setupNodeEvents: (on, config) => { const isDev = config.watchForFileChanges; const port = process.env.PORT ?? (isDev ? "3000" : "8811"); - const configOverrides: Partial = { + + return { + ...config, baseUrl: `http://localhost:${port}`, screenshotOnRunFailure: !process.env.CI, }; - - // To use this: - // cy.task('log', whateverYouWantInTheTerminal) - on("task", { - log: (message) => { - console.log(message); - - return null; - }, - }); - - return { ...config, ...configOverrides }; }, }, });