mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
34 lines
797 B
JavaScript
34 lines
797 B
JavaScript
import { defineConfig } from "cypress";
|
|
import getCompareSnapshotsPlugin from "cypress-image-diff-js/dist/plugin";
|
|
|
|
export default defineConfig({
|
|
e2e: {
|
|
baseUrl: "http://localhost:3000",
|
|
setupNodeEvents(on, config) {
|
|
// implement node event listeners here
|
|
getCompareSnapshotsPlugin(on, config);
|
|
},
|
|
},
|
|
|
|
component: {
|
|
devServer: {
|
|
framework: "next",
|
|
bundler: "webpack",
|
|
viewportWidth: 500,
|
|
viewportHeight: 500,
|
|
},
|
|
setupNodeEvents(on, config) {
|
|
// implement node event listeners here
|
|
getCompareSnapshotsPlugin(on, config);
|
|
},
|
|
specPattern: "cypress/components/*.cy.tsx"
|
|
},
|
|
|
|
env: {
|
|
MAILDEV_PROTOCOL: "http",
|
|
MAILDEV_HOST: "localhost",
|
|
MAILDEV_SMTP_PORT: "1025",
|
|
MAILDEV_API_PORT: "1080",
|
|
},
|
|
});
|