mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: recompile before funit and unit commands (#8363)
Running only tsc-cjs does not seem sufficient for rebuilding the project after the compat layer for ESM was introduced. Let's run `tsc` instead although it's somewhat slower. Issues: #8362
This commit is contained in:
parent
c7f6b856ab
commit
8735b784ba
@ -28,9 +28,9 @@
|
||||
"scripts": {
|
||||
"test-browser": "wtr",
|
||||
"test-browser-watch": "wtr --watch",
|
||||
"unit": "npm run tsc-cjs && mocha --config mocha-config/puppeteer-unit-tests.js",
|
||||
"unit": "npm run tsc-cjs && npm run tsc-compat-cjs && mocha --config mocha-config/puppeteer-unit-tests.js",
|
||||
"chrome-headless-unit": "cross-env HEADLESS=chrome npm run unit",
|
||||
"unit-debug": "npm run tsc-cjs && mocha --inspect-brk --config mocha-config/puppeteer-unit-tests.js",
|
||||
"unit-debug": "npm run tsc-cjs && npm run tsc-compat-cjs && mocha --inspect-brk --config mocha-config/puppeteer-unit-tests.js",
|
||||
"unit-with-coverage": "cross-env COVERAGE=1 npm run unit",
|
||||
"assert-unit-coverage": "cross-env COVERAGE=1 mocha --config mocha-config/coverage-tests.js",
|
||||
"funit": "cross-env PUPPETEER_PRODUCT=firefox npm run unit",
|
||||
|
Loading…
Reference in New Issue
Block a user