|
1 | 1 | { |
2 | 2 | "name": "reactime", |
3 | 3 | "description": "build web extension bundle.js", |
4 | | - "jest": { |
5 | | - "transform": { |
6 | | - "^.+\\.(js|ts|tsx)$": "ts-jest" |
7 | | - }, |
8 | | - "testPathIgnorePatterns": [ |
9 | | - "www", |
10 | | - "./src/backend/__tests__/ignore" |
11 | | - ], |
12 | | - "coveragePathIgnorePatterns": [ |
13 | | - "/src/backend/__tests__/ignore/" |
14 | | - ], |
15 | | - "transformIgnorePatterns": [ |
16 | | - "/node_modules/(?!d3|d3-array|internmap|delaunator|robust-predicates)" |
17 | | - ], |
18 | | - "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", |
19 | | - "moduleFileExtensions": [ |
20 | | - "ts", |
21 | | - "tsx", |
22 | | - "js" |
23 | | - ] |
24 | | - }, |
25 | 4 | "scripts": { |
26 | 5 | "build": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode production", |
27 | 6 | "dev": "NODE_OPTIONS=--openssl-legacy-provider webpack --mode development --watch", |
28 | 7 | "buildlegacy": "webpack --mode production", |
29 | 8 | "devlegacy": "webpack --mode development --watch", |
30 | 9 | "test": "jest --verbose --coverage", |
31 | 10 | "test-backend": "jest --verbose --coverage src/backend", |
| 11 | + "test-frontend": "jest --verbose --coverage src/app", |
| 12 | + "test-newfront": "jest --verbose --coverage src/app/__tests__new", |
| 13 | + "test-zo": "jest --verbose --coverage src/app/__tests__zo", |
32 | 14 | "test-on": "./node_modules/.bin/jest $1", |
33 | 15 | "docker-test-lint": "eslint --ext .js --ext .jsx src", |
34 | 16 | "docs": "typedoc --json docs --inputFiles src/app --inputFiles src/backend --readme docs/readme.md", |
|
110 | 92 | "@babel/plugin-proposal-decorators": "^7.10.5", |
111 | 93 | "@babel/preset-env": "^7.12.7", |
112 | 94 | "@babel/preset-react": "^7.12.7", |
| 95 | + "@babel/preset-typescript": "^7.21.5", |
113 | 96 | "@emotion/babel-plugin": "^11.7.2", |
| 97 | + "@inrupt/jest-jsdom-polyfills": "^1.6.2", |
114 | 98 | "@testing-library/jest-dom": "^4.2.4", |
115 | 99 | "@testing-library/react": "^13.4.0", |
| 100 | + "@testing-library/user-event": "^14.4.3", |
116 | 101 | "@types/chai": "^4.2.14", |
117 | 102 | "@types/chrome": "^0.0.119", |
118 | 103 | "@types/d3": "^7.4.0", |
|
134 | 119 | "eslint-config-airbnb": "^18.2.0", |
135 | 120 | "eslint-plugin-import": "^2.22.0", |
136 | 121 | "eslint-plugin-jest": "^22.21.0", |
| 122 | + "eslint-plugin-jest-dom": "^4.0.3", |
137 | 123 | "eslint-plugin-jsx-a11y": "^6.3.1", |
138 | 124 | "eslint-plugin-react": "^7.20.3", |
139 | 125 | "eslint-plugin-react-hooks": "^1.7.0", |
| 126 | + "eslint-plugin-testing-library": "^5.10.3", |
140 | 127 | "express": "^4.17.1", |
141 | 128 | "jest": "^29.5.0", |
142 | 129 | "jest-cli": "^26.1.0", |
143 | 130 | "jest-diff": "^26.1.0", |
| 131 | + "jest-environment-jsdom": "^29.5.0", |
144 | 132 | "jest-runner-eslint": "^2.0.0", |
145 | 133 | "jscharting-react": "^1.2.1", |
| 134 | + "jsdom": "^21.1.2", |
146 | 135 | "prettier": "2.8.4", |
147 | 136 | "puppeteer": "^14.3.0", |
148 | 137 | "react-devtools-core": "^4.27.3", |
|
195 | 184 | "d3-scale-chromatic": "^3.0.0", |
196 | 185 | "d3-shape": "^2.0.0", |
197 | 186 | "d3-zoom": "^3.0.0", |
| 187 | + "identity-obj-proxy": "^3.0.0", |
198 | 188 | "immer": "^9.0.12", |
199 | 189 | "intro.js": "^5.0.0", |
200 | 190 | "intro.js-react": "^0.6.0", |
201 | 191 | "jest-runner": "^26.1.0", |
202 | 192 | "jscharting": "^3.0.2", |
203 | | - "jsdom": "^21.1.1", |
204 | 193 | "jsondiffpatch": "^0.3.11", |
205 | 194 | "lodash": "^4.17.21", |
206 | 195 | "prop-types": "^15.7.2", |
|
0 commit comments