|
24 | 24 | "debug": "node --inspect-brk ./lighthouse-cli/index.js", |
25 | 25 | "start": "node ./lighthouse-cli/index.js", |
26 | 26 | "test": "yarn diff:sample-json && yarn lint --quiet && yarn unit && yarn type-check", |
27 | | - "test-clients": "mocha \"clients/test/**/*-test.js\"", |
28 | | - "test-viewer": "yarn unit-viewer && mocha lighthouse-viewer/test/viewer-test-pptr.js", |
| 27 | + "test-clients": "jest \"clients/\"", |
| 28 | + "test-viewer": "yarn unit-viewer && jest lighthouse-viewer/test/viewer-test-pptr.js", |
29 | 29 | "test-lantern": "bash lighthouse-core/scripts/test-lantern.sh", |
30 | 30 | "unit-core": "jest \"lighthouse-core/\"", |
31 | 31 | "unit-core:ci": "jest --runInBand --coverage --ci \"lighthouse-core/\"", |
32 | 32 | "unit-cli": "jest --runInBand \"lighthouse-cli/\"", |
33 | 33 | "unit-cli:ci": "jest --runInBand --coverage --ci \"lighthouse-cli/\"", |
34 | | - "unit-viewer": "mocha --reporter dot \"lighthouse-viewer/test/**/*-test.js\"", |
| 34 | + "unit-viewer": "jest \"lighthouse-viewer/\"", |
35 | 35 | "unit": "yarn unit-core && yarn unit-cli && yarn unit-viewer", |
36 | 36 | "unit:ci": "yarn unit-core:ci && yarn unit-cli:ci && yarn unit-viewer", |
37 | 37 | "core-unit": "yarn unit-core", |
|
50 | 50 | "fast": "yarn start --disable-device-emulation --throttlingMethod=provided", |
51 | 51 | "deploy-viewer": "yarn build-viewer --deploy", |
52 | 52 | "bundlesize": "bundlesize", |
53 | | - "plots-smoke": "bash plots/test/smoke.sh", |
54 | 53 | "timing-trace": "node lighthouse-core/scripts/generate-timing-trace.js", |
55 | 54 | "changelog": "conventional-changelog --config ./build/changelog-generator/index.js --infile changelog.md --same-file", |
56 | 55 | "type-check": "tsc -p . && tsc -p lighthouse-viewer/", |
|
111 | 110 | "devtools-protocol": "0.0.588129", |
112 | 111 | "eslint": "^4.19.1", |
113 | 112 | "eslint-config-google": "^0.9.1", |
| 113 | + "esprima": "^4.0.1", |
114 | 114 | "gh-pages": "^2.0.1", |
115 | 115 | "glob": "^7.1.3", |
116 | 116 | "idb-keyval": "2.2.0", |
117 | 117 | "intl": "^1.2.5", |
118 | 118 | "jest": "^24.3.0", |
119 | 119 | "jsdom": "^12.2.0", |
120 | 120 | "make-dir": "^1.3.0", |
121 | | - "mocha": "^3.2.0", |
122 | 121 | "npm-run-posix-or-windows": "^2.0.2", |
123 | 122 | "nyc": "^11.6.0", |
124 | 123 | "package-json-versionify": "^1.0.4", |
|
138 | 137 | "configstore": "^3.1.1", |
139 | 138 | "cssstyle": "1.2.1", |
140 | 139 | "details-element-polyfill": "2.2.0", |
141 | | - "esprima": "^4.0.1", |
142 | 140 | "http-link-header": "^0.8.0", |
143 | 141 | "inquirer": "^3.3.0", |
144 | 142 | "intl-messageformat": "^2.2.0", |
145 | 143 | "intl-messageformat-parser": "^1.4.0", |
146 | | - "jest-mock": "^24.3.0", |
147 | 144 | "jpeg-js": "0.1.2", |
148 | 145 | "js-library-detector": "^5.1.0", |
149 | 146 | "lighthouse-logger": "^1.2.0", |
|
0 commit comments