Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Rebuild the measure-scripts-contract sandbox on pnpm (#3157)

Andrew Mikofalvy0961742d389a
diff --git a/packages/app/scripts/measure-fuzz.sh b/packages/app/scripts/measure-fuzz.sh
index 9473f5c34..3e00aab2e 100755
--- a/packages/app/scripts/measure-fuzz.sh
+++ b/packages/app/scripts/measure-fuzz.sh
@@ -182,9 +182,11 @@ TEST_EXIT=0
# Explicit exit: errexit is suppressed inside a piped compound, so a bare
# failed cd would let the test run from the wrong cwd.
cd "$APP_DIR" || exit 1
- # --conditions development resolves workspace deps from source exports
- # instead of an unbuilt dist/ (the fresh-worktree state) — without it the
- # run dies on missing build artifacts.
+ # No --conditions flag: packages/app/vitest.config.ts spreads
+ # test-support/vitest.base.ts, which pins the `development` export condition
+ # in both resolve and ssr.resolve. That pin is what resolves workspace deps
+ # from source exports instead of an unbuilt dist/ (the fresh-worktree
+ # state) — without it the run dies on missing build artifacts.
pnpm exec vitest run "$TEST_FILE" 2>&1
) | tee "$OUT_FILE" || TEST_EXIT=$?
diff --git a/packages/app/scripts/measure-stress.sh b/packages/app/scripts/measure-stress.sh
index 68d81e9b3..b619e92aa 100755
--- a/packages/app/scripts/measure-stress.sh
+++ b/packages/app/scripts/measure-stress.sh
@@ -132,9 +132,11 @@ TEST_EXIT=0
# Explicit exit: errexit is suppressed inside a piped compound, so a bare
# failed cd would let the test run from the wrong cwd.
cd "$APP_DIR" || exit 1
- # --conditions development resolves workspace deps from source exports
- # instead of an unbuilt dist/ (the fresh-worktree state) — without it the
- # run dies on missing build artifacts.
+ # No --conditions flag: packages/app/vitest.config.ts spreads
+ # test-support/vitest.base.ts, which pins the `development` export condition
+ # in both resolve and ssr.resolve. That pin is what resolves workspace deps
+ # from source exports instead of an unbuilt dist/ (the fresh-worktree
+ # state) — without it the run dies on missing build artifacts.
pnpm exec vitest run "$TEST_FILE" 2>&1
) | tee "$OUT_FILE" || TEST_EXIT=$?