cypress.config.js 632 B

123456789101112131415161718192021
  1. const { defineConfig } = require('cypress')
  2. module.exports = defineConfig({
  3. env: {
  4. apiUrl: 'http://localhost:9000',
  5. serverInitCmd:
  6. 'pkill -9 listmonk | cd ../ && ./listmonk --install --yes && ./listmonk > /dev/null 2>/dev/null &',
  7. username: 'listmonk',
  8. password: 'listmonk',
  9. },
  10. viewportWidth: 1300,
  11. viewportHeight: 950,
  12. e2e: {
  13. // We've imported your old cypress plugins here.
  14. // You may want to clean this up later by importing these.
  15. setupNodeEvents(on, config) {
  16. return require('./cypress/plugins/index.js')(on, config)
  17. },
  18. baseUrl: 'http://localhost:9000/admin',
  19. },
  20. })