|
3 | 3 | "version": "0.1.0", |
4 | 4 | "private": true, |
5 | 5 | "scripts": { |
| 6 | + "dev": "yarn react-app-rewired start", |
6 | 7 | "start": "sh start-ssl.sh", |
7 | 8 | "start:bsouza": "sudo sh start-ssl-bsouza.sh", |
8 | 9 | "build": "yarn react-app-rewired build", |
|
13 | 14 | "eslint": "eslint 'src/**/*.{js,jsx}'", |
14 | 15 | "eslint:fix": "eslint 'src/**/*.{js,jsx}' --fix", |
15 | 16 | "test": "react-scripts test --watchAll", |
16 | | - "test:no-watch": "react-scripts test --watchAll=false --passWithNoTests" |
| 17 | + "test:no-watch": "react-scripts test --watchAll=false --passWithNoTests", |
| 18 | + "cy:run": "cypress run", |
| 19 | + "cy:ci": "start-server-and-test 'serve -s build -n -p 3000' http://localhost:3000 'cy:run'", |
| 20 | + "report:coverage": "nyc report --reporter=html", |
| 21 | + "report:coverage:text": "nyc report --reporter=text" |
17 | 22 | }, |
18 | 23 | "dependencies": { |
19 | 24 | "@datadog/browser-logs": "^4.7.1", |
|
70 | 75 | "@babel/preset-react": "^7.7.4", |
71 | 76 | "@babel/preset-typescript": "^7.16.7", |
72 | 77 | "@babel/runtime": "^7.8.7", |
| 78 | + "@cypress/code-coverage": "^3.10.0", |
73 | 79 | "@stripe/react-stripe-js": "1.7.2", |
74 | 80 | "@stripe/stripe-js": "1.29.0", |
75 | 81 | "@testing-library/jest-dom": "^5.14.1", |
|
78 | 84 | "@types/axios": "^0.14.0", |
79 | 85 | "@types/jest": "^27.0.1", |
80 | 86 | "@types/lodash": "^4.14.182", |
81 | | - "@types/node": "^17.0.24", |
| 87 | + "@types/node": "^18.7.13", |
82 | 88 | "@types/reach__router": "^1.3.10", |
83 | 89 | "@types/react": "^18.0.5", |
84 | 90 | "@types/react-dom": "^18.0.1", |
|
97 | 103 | "concurrently": "^5.0.1", |
98 | 104 | "config": "^3.3.6", |
99 | 105 | "cross-env": "^7.0.2", |
| 106 | + "cypress": "^10.6.0", |
100 | 107 | "eslint": "^8.18.0", |
101 | 108 | "eslint-config-prettier": "^6.7.0", |
102 | 109 | "eslint-config-react-app": "^7.0.1", |
103 | 110 | "eslint-config-react-important-stuff": "^2.0.0", |
| 111 | + "eslint-plugin-cypress": "^2.12.1", |
104 | 112 | "eslint-plugin-prettier": "^3.1.1", |
105 | 113 | "file-loader": "^6.2.0", |
106 | 114 | "husky": "^8.0.0", |
107 | 115 | "identity-obj-proxy": "^3.0.0", |
| 116 | + "istanbul-lib-coverage": "^3.2.0", |
108 | 117 | "jest": "^25.2.7", |
109 | 118 | "jest-cli": "^25.2.7", |
110 | 119 | "lint-staged": "^13.0.3", |
| 120 | + "nyc": "^15.1.0", |
111 | 121 | "postcss-loader": "^4.0.4", |
112 | 122 | "postcss-scss": "^3.0.2", |
113 | 123 | "prettier": "^2.0.4", |
114 | 124 | "pretty-quick": "^2.0.1", |
115 | 125 | "resolve-url-loader": "^3.1.2", |
116 | 126 | "sass-loader": "^10.0.5", |
| 127 | + "serve": "^14.0.1", |
| 128 | + "start-server-and-test": "^1.14.0", |
117 | 129 | "style-loader": "^2.0.0", |
118 | 130 | "systemjs-webpack-interop": "^2.1.2", |
119 | 131 | "tslint": "^6.1.3", |
|
0 commit comments