forked from RedHatInsights/vulnerability-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcypress.config.js
More file actions
26 lines (25 loc) · 796 Bytes
/
cypress.config.js
File metadata and controls
26 lines (25 loc) · 796 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
const { defineConfig } = require('cypress');
const webpackConfig = require('./config/cypress.webpack.config.js');
const codeCoverageTask = require('@cypress/code-coverage/task');
const { initPlugin } = require('@frsource/cypress-plugin-visual-regression-diff/plugins');
module.exports = defineConfig({
viewportWidth: 1000,
viewportHeight: 660,
video: false,
component: {
devServer: {
framework: 'react',
bundler: 'webpack',
webpackConfig
},
specPattern: 'src/**/*.cy.{js,ts,jsx,tsx}',
setupNodeEvents(on, config) {
initPlugin(on, config);
codeCoverageTask(on, config);
return config;
}
},
env: {
pluginVisualRegressionMaxDiffThreshold: 0.05
}
});