listmonk/frontend/cypress.config.js
Kailash Nadh 007f4de850 Fix a number of cosmetic inconsistenies across handlers and functions.
- Make the beginning of handlers consistent with uniform variable declaration
  and grouping.
- Add missing comments.
- Fix staticcheck/vet warnings and idiom issues.
2025-04-05 13:41:31 +05:30

26 lines
943 B
JavaScript
Vendored

const { defineConfig } = require('cypress');
module.exports = defineConfig({
env: {
apiUrl: 'http://localhost:9000',
serverInitCmd:
'pkill -9 listmonk | cd ../ && LISTMONK_ADMIN_USER=admin LISTMONK_ADMIN_PASSWORD=listmonk ./listmonk --install --yes && ./listmonk > /dev/null 2>/dev/null &',
serverInitBlankCmd:
'pkill -9 listmonk | cd ../ && ./listmonk --install --yes && ./listmonk > /dev/null 2>/dev/null &',
LISTMONK_ADMIN_USER: 'admin',
LISTMONK_ADMIN_PASSWORD: 'listmonk',
},
viewportWidth: 1400,
viewportHeight: 950,
e2e: {
experimentalRunAllSpecs: true,
testIsolation: false,
experimentalSessionAndOrigin: false,
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config);
},
baseUrl: 'http://localhost:9000',
},
});