cypress.config.ts 576 B

123456789101112131415161718192021222324
  1. import { defineConfig } from "cypress";
  2. import webpackConfig from './webpack.config';
  3. export default defineConfig({
  4. projectId: "k83u7j",
  5. scrollBehavior: false,
  6. e2e: {
  7. // We've imported your old cypress plugins here.
  8. // You may want to clean this up later by importing these.
  9. setupNodeEvents(on, config) {
  10. return require("./cypress/plugins/index.js")(on, config);
  11. },
  12. specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
  13. },
  14. component: {
  15. devServer: {
  16. framework: "react",
  17. bundler: "webpack",
  18. webpackConfig,
  19. },
  20. },
  21. });