Skip to content

Commit

Permalink
fix smoke test config
Browse files Browse the repository at this point in the history
  • Loading branch information
boazsender committed Oct 22, 2024
1 parent 7b97b42 commit 826d146
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Cypress.PluginConfigOptions> = {

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 };
},
},
});

0 comments on commit 826d146

Please sign in to comment.