|
4 | 4 | "@testing-library/jest-dom": "5.11.4",
|
5 | 5 | "@testing-library/react": "11.1.0",
|
6 | 6 | "@testing-library/user-event": "12.1.10",
|
| 7 | + "@testing-library/cypress": "7.0.4", |
7 | 8 | "@types/node": "12.0.0",
|
8 | 9 | "@types/react": "17.0.0",
|
9 | 10 | "@types/react-dom": "17.0.0",
|
10 | 11 | "@types/jest": "26.0.15",
|
11 | 12 | "typescript": "4.1.2",
|
12 | 13 | "web-vitals": "1.0.1",
|
13 | 14 | "axios": "0.21.1",
|
| 15 | + "cypress": "7.4.0", |
| 16 | + "cypress-react-selector": "2.3.6", |
14 | 17 | "eslint": "7.25.0",
|
15 | 18 | "prettier": "2.2.1",
|
16 | 19 | "@nimbl3/eslint-config-nimbl3": "2.1.1",
|
17 | 20 | "eslint-plugin-prettier": "3.4.0",
|
18 | 21 | "eslint-config-prettier": "8.3.0",
|
| 22 | + "eslint-plugin-cypress": "2.11.2", |
19 | 23 | "eslint-plugin-import": "2.22.1",
|
20 | 24 | "eslint-plugin-jsx-a11y": "6.4.1",
|
21 | 25 | "eslint-plugin-react": "7.23.2",
|
|
31 | 35 | "stylelint-config-property-sort-order-smacss": "7.1.0"
|
32 | 36 | },
|
33 | 37 | "scripts": {
|
34 |
| - "lint": "eslint ./src --ext .ts,.tsx", |
35 |
| - "lint:fix": "eslint ./src --ext .ts,.tsx --fix", |
| 38 | + "lint": "eslint ./src ./cypress --ext .ts,.tsx", |
| 39 | + "lint:fix": "eslint ./src ./cypress --ext .ts,.tsx --fix", |
36 | 40 | "stylelint": "stylelint '**/*.scss'",
|
37 | 41 | "stylelint:fix": "stylelint '**/*.scss' --fix",
|
38 | 42 | "codebase:lint": "yarn lint && yarn stylelint",
|
39 |
| - "codebase:fix": "yarn lint:fix && yarn stylelint:fix" |
| 43 | + "codebase:fix": "yarn lint:fix && yarn stylelint:fix", |
| 44 | + "cypress:run": "cypress run", |
| 45 | + "cypress:open": "cypress open" |
40 | 46 | }
|
41 | 47 | }
|
42 | 48 | }
|
0 commit comments