forked from Greenstand/treetracker-web-map-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcypress.config.js
More file actions
34 lines (29 loc) · 805 Bytes
/
cypress.config.js
File metadata and controls
34 lines (29 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const { defineConfig } = require('cypress');
module.exports = defineConfig({
viewportWidth: 1440,
viewportHeight: 800,
nodeVersion: 'system',
'cypress-watch-and-reload': {
watch: ['src/**'],
},
e2e: {
// 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:3000',
specPattern: 'cypress/tests/**/*.cy.{js,jsx,ts,tsx}',
},
component: {
setupNodeEvents(on, config) {},
supportFile: 'cypress/support/components-testing.js',
specPattern: 'src/**/*.cy.{js,jsx,ts,tsx}',
},
component: {
devServer: {
framework: 'next',
bundler: 'webpack',
},
},
});