-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.js
33 lines (31 loc) · 934 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
28
29
30
31
32
33
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");
const setupNodeEvents = async (on, config) => {
await preprocessor.addCucumberPreprocessorPlugin(on, config);
on(
"file:preprocessor",
createBundler({
plugins: [createEsbuildPlugin.default(config)],
})
);
return config;
};
module.exports = defineConfig({
env: {
home_page: "http://localhost:3000",
},
viewportWidth: 1920,
viewportHeight: 1080,
defaultCommandTimeout: 5000,
chromeWebSecurity: false,
fixturesFolder: false,
e2e: {
hideXHRInCommandLog: true,
setupNodeEvents,
specPattern: "cypress/e2e/**/*.feature",
baseUrl: "http://localhost:3000",
excludeSpecPattern: ["*.js"],
},
});