|
33 | 33 | "smoke": "node lighthouse-cli/test/smokehouse/frontends/smokehouse-bin.js",
|
34 | 34 | "debug": "node --inspect-brk ./lighthouse-cli/index.js",
|
35 | 35 | "start": "yarn build-report --only-standalone && node ./lighthouse-cli/index.js",
|
36 |
| - "jest": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js", |
| 36 | + "jest": "node ./node_modules/jest/bin/jest.js", |
| 37 | + "jest-esm": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js", |
37 | 38 | "test": "yarn diff:sample-json && yarn lint --quiet && yarn unit && yarn type-check",
|
38 | 39 | "test-bundle": "yarn smoke --runner bundle -j=1 --retries=2 --invert-match forms",
|
39 | 40 | "test-clients": "yarn jest \"$PWD/clients/\"",
|
|
43 | 44 | "test-legacy-javascript": "bash lighthouse-core/scripts/test-legacy-javascript.sh",
|
44 | 45 | "test-docs": "yarn --cwd docs/recipes/auth && yarn jest docs/recipes/integration-test && yarn --cwd docs/recipes/custom-gatherer-puppeteer test",
|
45 | 46 | "test-proto": "yarn compile-proto && yarn build-proto-roundtrip",
|
46 |
| - "unit-core": "yarn jest \"lighthouse-core\"", |
| 47 | + "unit-core": "yarn jest \"lighthouse-core\" --testPathIgnorePatterns=page-functions", |
| 48 | + "unit-core-esm": "yarn jest-esm \"page-functions\"", |
47 | 49 | "unit-cli": "yarn jest \"lighthouse-cli/\"",
|
48 |
| - "unit-report": "yarn jest \"report/\"", |
| 50 | + "unit-report": "yarn jest-esm \"report/\"", |
49 | 51 | "unit-treemap": "jest \"lighthouse-treemap/.*-test.js\"",
|
50 | 52 | "unit-viewer": "jest \"lighthouse-viewer/.*-test.js\"",
|
51 |
| - "unit": "yarn unit-core && yarn unit-cli && yarn unit-report && yarn unit-viewer && yarn unit-treemap", |
52 |
| - "unit:ci": "NODE_OPTIONS=--max-old-space-size=8192 npm run unit-core -- --ci && npm run unit-cli -- --ci && npm run unit-report -- --ci && npm run unit-viewer -- --ci && npm run unit-treemap -- --ci", |
| 53 | + "unit": "yarn unit-core && yarn unit-core-esm && yarn unit-cli && yarn unit-report && yarn unit-viewer && yarn unit-treemap", |
| 54 | + "unit:ci": "NODE_OPTIONS=--max-old-space-size=8192 npm run unit-core -- --ci && npm run unit-core-esm -- --ci && npm run unit-cli -- --ci && npm run unit-report -- --ci && npm run unit-viewer -- --ci && npm run unit-treemap -- --ci", |
53 | 55 | "core-unit": "yarn unit-core",
|
54 | 56 | "cli-unit": "yarn unit-cli",
|
55 | 57 | "viewer-unit": "yarn unit-viewer",
|
|
0 commit comments