-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.js
37 lines (36 loc) · 1.11 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
const { defineConfig } = require('cypress')
import createBundler from '@bahmutov/cypress-esbuild-preprocessor'
import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor'
import createEsbuildPlugin from '@badeball/cypress-cucumber-preprocessor/esbuild'
module.exports = defineConfig({
e2e: {
specPattern: ['cypress/e2e/**/*.test.{js,jsx,ts,tsx}', '**/*/*.feature'],
screenshotOnRunFailure: true,
video: false,
async setupNodeEvents(on, config) {
// implement node event listeners here
await addCucumberPreprocessorPlugin(on, config)
on(
'file:preprocessor',
createBundler({
plugins: [createEsbuildPlugin(config)],
}),
)
return config
},
reporter: 'mochawesome',
reporterOptions: {
reportDir: 'cypress/results',
// disable overwrite to generate many JSON reports
overwrite: false,
// do not generate intermediate HTML reports
html: false,
// generate intermediate JSON reports
json: true,
},
baseUrl: 'https://marsair.recruiting.thoughtworks.net/HoaPham',
},
env: {
baseUrl: 'https://marsair.recruiting.thoughtworks.net/HoaPham',
},
})