Skip to content

Commit 5600ae9

Browse files
committed
fix: cypress run from before-push
1 parent 68d87af commit 5600ae9

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

cypress.config.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ module.exports = defineConfig({
1616
],
1717
'experimentalRunAllSpecs': true,
1818
setupNodeEvents(on, config) {
19-
if (process.env.ELECTRON_EXTRA_LAUNCH_ARGS) {
20-
on('task', {
21-
prepareArchives: () => {
22-
// Your task logic here (e.g., file operations, cleanup, etc.)
23-
console.log('Preparing archives...');
24-
return null; // or return a value if needed
25-
},
26-
});
27-
installPlugin(on, config);
28-
}
19+
on('task', {
20+
prepareArchives: () => {
21+
// Your task logic here (e.g., file operations, cleanup, etc.)
22+
console.log('Preparing archives...');
23+
return null; // or return a value if needed
24+
},
25+
});
26+
installPlugin(on, config);
2927
coverage(on, config);
3028
on('file:preprocessor', cucumber());
3129
return config;

0 commit comments

Comments
 (0)