-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcypress.config.js
More file actions
37 lines (35 loc) · 1.06 KB
/
cypress.config.js
File metadata and controls
37 lines (35 loc) · 1.06 KB
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
35
36
37
const cucumber = require('cypress-cucumber-preprocessor').default;
const { defineConfig } = require('cypress');
const coverage = require('@cypress/code-coverage/task');
const { installPlugin } = require('@chromatic-com/cypress');
module.exports = defineConfig({
viewportHeight: 920,
viewportWidth: 1280,
experimentalFastVisibility: true,
e2e: {
'projectId': 'wpcwmv',
'watchForFileChanges': false,
'specPattern': [
'cypress/e2e/**/*.feature',
//'cypress/regression/**/*.spec.js'
],
'experimentalRunAllSpecs': true,
setupNodeEvents(on, config) {
coverage(on, config);
on('file:preprocessor', cucumber());
if (process.env.ELECTRON_EXTRA_LAUNCH_ARGS) {
on('task', {
prepareArchives: () => {
// Your task logic here (e.g., file operations, cleanup, etc.)
console.log('Preparing archives...');
return null; // or return a value if needed
},
});
}
if (process.env.CI) {
installPlugin(on, config);
}
return config;
}
}
});