cypress.config.mjs 490 B

12345678910111213141516171819
  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: 16000,
  6. e2e: {
  7. baseUrl: 'http://localhost:1234',
  8. specPattern: 'cypress/integration/*.spec.ts',
  9. setupNodeEvents (on) {
  10. // implement node event listeners here
  11. installLogsPrinter(on)
  12. startMockServer('localhost', 4678)
  13. },
  14. },
  15. })