Skip to content

Commit c4b4da6

Browse files
authored
Make running Parcel fixtures more robust (#1041)
1 parent b6b3f07 commit c4b4da6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"test:unit": "pnpm test:jest && pnpm test:vitest",
1717
"test:jest": "jest",
1818
"test:vitest": "vitest --watch=false",
19-
"test:playwright": "playwright test",
19+
"test:playwright": "NODE_OPTIONS=--no-experimental-fetch playwright test",
2020
"format": "prettier --write .",
2121
"lint": "manypkg check && prettier --check . && tsc",
2222
"copy-readme-to-packages": "ts-node scripts/copy-readme-to-packages",

test-helpers/src/startFixture/parcel.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ export const startParcelFixture = async (
3939
return reject(err);
4040
}
4141

42+
if (buildEvent?.type === 'buildFailure') {
43+
console.error('Build event diagnostics:', buildEvent.diagnostics);
44+
return reject(buildEvent.diagnostics[0]);
45+
}
46+
4247
if (buildEvent?.type === 'buildSuccess') {
4348
const cssBundle = buildEvent.bundleGraph
4449
.getBundles()

0 commit comments

Comments
 (0)