-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcypress.config.js
27 lines (26 loc) · 1018 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
27
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");
module.exports = defineConfig({
projectId: "nvh163",
e2e: {
baseUrl: "http://localhost:3000/",
setupNodeEvents(on, config) {
on("file:preprocessor", createBundler({plugins: [createEsbuildPlugin.default(config)],}));
preprocessor.addCucumberPreprocessorPlugin(on, config);
return config;
},
specPattern: "**/*.feature",
},
videosFolder: "cypress/reports/videos",
screenshotsFolder: "cypress/reports/screenshots",
reporter: 'cypress-mochawesome-reporter',
reporterOptions: {
charts: true,
reportPageTitle: 'custom-title',
embeddedScreenshots: true,
inlineAssets: true,
saveAllAttempts: false,
},
});