cypress.config.mjs 517 B

1234567891011121314151617181920
  1. import { defineConfig } from 'cypress'
  2. import installLogsPrinter from 'cypress-terminal-report/src/installLogsPrinter.js'
  3. import startMockServer from './mock-server.mjs'
  4. export default defineConfig({
  5. defaultCommandTimeout: 16_000,
  6. requestTimeout: 16_000,
  7. e2e: {
  8. baseUrl: 'http://localhost:1234',
  9. specPattern: 'cypress/integration/*.spec.ts',
  10. setupNodeEvents (on) {
  11. // implement node event listeners here
  12. installLogsPrinter(on)
  13. startMockServer('localhost', 4678)
  14. },
  15. },
  16. })