-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcypress.config.js
More file actions
28 lines (24 loc) · 815 Bytes
/
cypress.config.js
File metadata and controls
28 lines (24 loc) · 815 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
27
28
const { defineConfig } = require('cypress')
const createBundler = require('@bahmutov/cypress-esbuild-preprocessor')
const preprocessor = require('@badeball/cypress-cucumber-preprocessor')
const createEsbuildPlugin = require('@badeball/cypress-cucumber-preprocessor/esbuild')
async function setupNodeEvents (on, config) {
await preprocessor.addCucumberPreprocessorPlugin(on, config)
on(
'file:preprocessor',
createBundler({
plugins: [createEsbuildPlugin.default(config)]
})
)
// Make sure to return the config object as it might have been modified by the plugin.
return config
}
module.exports = defineConfig({
e2e: {
specPattern: '**/*.feature',
baseUrl: 'https://www.vouchercodes.co.uk',
defaultCommandTimeout: 5000,
supportFile: false,
setupNodeEvents
}
})