mermaid/cypress.config.cjs

25 lines
768 B
JavaScript
Raw Normal View History

2022-09-09 14:56:57 +02:00
/* eslint-disable @typescript-eslint/no-var-requires */
2022-06-19 14:13:22 +02:00
const { defineConfig } = require('cypress');
const { addMatchImageSnapshotPlugin } = require('cypress-image-snapshot/plugin');
2023-06-16 16:55:40 +02:00
const coverage = require('@cypress/code-coverage/task');
2022-06-19 14:13:22 +02:00
module.exports = defineConfig({
2022-09-21 07:06:38 +02:00
projectId: 'n2sma2',
2022-06-19 14:13:22 +02:00
e2e: {
specPattern: 'cypress/integration/**/*.{js,jsx,ts,tsx}',
2022-06-19 14:13:22 +02:00
setupNodeEvents(on, config) {
2023-06-16 16:55:40 +02:00
coverage(on, config);
2022-06-19 14:13:22 +02:00
addMatchImageSnapshotPlugin(on, config);
// copy any needed variables from process.env to config.env
config.env.useAppli = process.env.USE_APPLI ? true : false;
// do not forget to return the changed config object!
return config;
},
},
video: false,
});
require('@applitools/eyes-cypress')(module);