-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.js
37 lines (35 loc) · 1.09 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");
const path = require('path');
const { startDevServer } = require('@cypress/webpack-dev-server');
module.exports = defineConfig({
e2e: {
baseUrl: 'https://g4ss4n-makerspace.netlify.app/',
specPattern: [
"cypress/e2e/active/register.cy.js",
"cypress/e2e/active/login.cy.js",
"cypress/e2e/active/dashboard.cy.js",
"cypress/e2e/active/createNewProject.cy.js",
"cypress/e2e/active/createNewTemplate.cy.js",
"cypress/e2e/active/createNewProjectTask.cy.js",
"cypress/e2e/active/taskResponse.cy.js",
"cypress/e2e/active/dashboard.cy.js",
"cypress/e2e/active/multiPatricipants.cy.js",
"cypress/e2e/active/projectDeletion.cy.js",
],
setupNodeEvents(on, config) {
on('dev-server:start', (options) => {
return startDevServer({
options,
webpackConfig: require('./webpack.config.js'),
});
});
},
},
component: {
devServer: {
framework: "react",
bundler: "webpack",
webpackConfig: require('./webpack.config.js'),
},
},
});