Skip to content

Commit 409ecca

Browse files
committed
edit the folder structure of cypress
1 parent df55c19 commit 409ecca

33 files changed

+121
-2322
lines changed

.vscode/tasks.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
{
32
"version": "2.0.0",
43
"tasks": [
@@ -41,9 +40,9 @@
4140
{
4241
"label": "Cypress",
4342
"type": "shell",
44-
"command": "npx cypress run --spec \"cypress/e2e/systemtest.cy.js\" --reporter mochawesome",
43+
"command": "npx cypress run --config-file cypress.config.js --spec \"cypress/e2e/systemtest.cy.js\" --reporter mochawesome",
4544
"options": {
46-
"cwd": "${workspaceFolder}"
45+
"cwd": "${workspaceFolder}/cypress"
4746
},
4847
"problemMatcher": []
4948
},

cypress.config.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

cypress.env.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

cypress/cypress.config.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1+
// const { defineConfig } = require("cypress");
2+
// const { defineConfig } = require('cypress');
3+
// module.exports = defineConfig({
4+
// e2e: {
5+
// setupNodeEvents(on, config) {
6+
7+
// },
8+
// },
9+
10+
// });
111
const { defineConfig } = require("cypress");
2-
const { defineConfig } = require('cypress');
12+
313
module.exports = defineConfig({
414
e2e: {
515
setupNodeEvents(on, config) {
6-
16+
// implement node event listeners here
717
},
818
},
919

20+
component: {
21+
devServer: {
22+
framework: "react",
23+
bundler: "webpack",
24+
},
25+
},
1026
});

cypress/cypress/e2e/1-getting-started/todo.cy.js

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)