forked from TradeTrust/tradetrust-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
synpress.config.js
29 lines (26 loc) · 930 Bytes
/
synpress.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
const log = require("debug")("synpress:config");
const { defineConfig } = require("cypress");
const webpackPreprocessor = require("@cypress/webpack-preprocessor");
const SynpressDefaultPlugins = require("@synthetixio/synpress/plugins/index");
const fixturesFolder = `./tests/e2e/fixtures`;
const supportFile = "tests/e2e/support/index.mjs";
module.exports = defineConfig({
userAgent: "synpress",
retries: 1,
fixturesFolder,
e2e: {
testIsolation: false,
setupNodeEvents: function (on, config) {
const options = {
webpackOptions: require("./tests/e2e/webpack.config"),
};
on("file:preprocessor", webpackPreprocessor(options));
SynpressDefaultPlugins(on, config);
},
baseUrl: "http://localhost:3000",
screenshotsFolder: "tests/e2e/screenshots",
videosFolder: "tests/e2e/videos",
specPattern: "tests/e2e/specs/**/*.{js,jsx,ts,mjs,tsx}",
supportFile,
},
});