Skip to content
Snippets Groups Projects
Commit e0cbecc7 authored by OZGCloud's avatar OZGCloud
Browse files

change config

parent ebd2c319
Branches
Tags
No related merge requests found
...@@ -10,18 +10,9 @@ export default defineConfig({ ...@@ -10,18 +10,9 @@ export default defineConfig({
...nxE2EPreset(__dirname), ...nxE2EPreset(__dirname),
...cypressConfig, ...cypressConfig,
setupNodeEvents(on, config) { setupNodeEvents(on, config) {
on('after:spec', (spec: Cypress.Spec, results: CypressCommandLine.RunResult) => {
if (results && results.video) {
const failures = results.tests.some((test) =>
test.attempts.some((attempt) => attempt.state === 'failed'),
);
if (!failures) {
fs.unlinkSync(results.video);
}
}
});
return cypressEvents(on, config); return cypressEvents(on, config);
}, },
videoUploadOnPasses: false,
}, },
retries: { retries: {
experimentalStrategy: 'detect-flake-and-pass-on-threshold', experimentalStrategy: 'detect-flake-and-pass-on-threshold',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment