snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
26
packages/shadcn/test/fixtures/frameworks/remix-indie-stack/cypress.config.ts
vendored
Normal file
26
packages/shadcn/test/fixtures/frameworks/remix-indie-stack/cypress.config.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { defineConfig } from "cypress";
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {
|
||||
setupNodeEvents: (on, config) => {
|
||||
const isDev = config.watchForFileChanges;
|
||||
const port = process.env.PORT ?? (isDev ? "3000" : "8811");
|
||||
const configOverrides: Partial<Cypress.PluginConfigOptions> = {
|
||||
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 };
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user