|
20 | 20 | "ts", |
21 | 21 | "tsx", |
22 | 22 | "js" |
23 | | - ] |
| 23 | + ], |
| 24 | + "setupFilesAfterEnv": [ |
| 25 | + "@testing-library/jest-dom/extend-expect" |
| 26 | + ], |
| 27 | + "testEnvironment": "jest-environment-jsdom" |
24 | 28 | }, |
25 | 29 | "scripts": { |
26 | 30 | "build": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode production", |
|
29 | 33 | "devlegacy": "webpack --mode development --watch", |
30 | 34 | "test": "jest --verbose --coverage", |
31 | 35 | "test-backend": "jest --verbose --coverage src/backend", |
| 36 | + "test-frontend": "jest --verbose --coverage src/app", |
| 37 | + "test-newfront": "jest --verbose --coverage src/app/__tests__new", |
32 | 38 | "test-on": "./node_modules/.bin/jest $1", |
33 | 39 | "docker-test-lint": "eslint --ext .js --ext .jsx src", |
34 | 40 | "docs": "typedoc --json docs --inputFiles src/app --inputFiles src/backend --readme docs/readme.md", |
|
113 | 119 | "@emotion/babel-plugin": "^11.7.2", |
114 | 120 | "@testing-library/jest-dom": "^4.2.4", |
115 | 121 | "@testing-library/react": "^13.4.0", |
| 122 | + "@testing-library/user-event": "^14.4.3", |
116 | 123 | "@types/chai": "^4.2.14", |
117 | 124 | "@types/chrome": "^0.0.119", |
118 | 125 | "@types/d3": "^7.4.0", |
|
134 | 141 | "eslint-config-airbnb": "^18.2.0", |
135 | 142 | "eslint-plugin-import": "^2.22.0", |
136 | 143 | "eslint-plugin-jest": "^22.21.0", |
| 144 | + "eslint-plugin-jest-dom": "^4.0.3", |
137 | 145 | "eslint-plugin-jsx-a11y": "^6.3.1", |
138 | 146 | "eslint-plugin-react": "^7.20.3", |
139 | 147 | "eslint-plugin-react-hooks": "^1.7.0", |
| 148 | + "eslint-plugin-testing-library": "^5.10.3", |
140 | 149 | "express": "^4.17.1", |
141 | 150 | "jest": "^29.5.0", |
142 | 151 | "jest-cli": "^26.1.0", |
143 | 152 | "jest-diff": "^26.1.0", |
| 153 | + "jest-environment-jsdom": "^29.5.0", |
144 | 154 | "jest-runner-eslint": "^2.0.0", |
145 | 155 | "jscharting-react": "^1.2.1", |
146 | 156 | "prettier": "2.8.4", |
|
0 commit comments