-
Notifications
You must be signed in to change notification settings - Fork 133
/
cypress.config.js
26 lines (24 loc) 路 825 Bytes
/
cypress.config.js
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 createBundler = require('@bahmutov/cypress-esbuild-preprocessor')
const {聽addCucumberPreprocessorPlugin } = require('@badeball/cypress-cucumber-preprocessor')
const {聽createEsbuildPlugin }聽 = require ('@badeball/cypress-cucumber-preprocessor/esbuild')
module.exports = defineConfig({
fixturesFolder: 'cypress/fixtures',
screenshotsFolder: 'reports/screenshots',
videosFolder: 'reports/videos',
chromeWebSecurity: false,
e2e: {
setupNodeEvents(on, config) {
addCucumberPreprocessorPlugin(on, config)
on(
"file:preprocessor",
createBundler({
plugins: [createEsbuildPlugin(config)],
})
);
return config
},
baseUrl: 'http://localhost:8080',
specPattern: 'cypress/e2e/**/*.feature',
},
})