Skip to content

Commit e36530c

Browse files
committed
fix: use bun test directly for web tests to pick up bunfig.toml preloads
1 parent a5c6adf commit e36530c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,13 @@ jobs:
150150
echo "No regular tests found in .agents"
151151
fi
152152
elif [ "${{ matrix.package }}" = "web" ]; then
153-
bun run test --runInBand
153+
# Use bun test directly to pick up bunfig.toml preloads for Request global
154+
TEST_FILES=$(find src -name '*.test.ts' ! -name '*.integration.test.ts' ! -path 'src/__tests__/e2e/*' 2>/dev/null | sort | tr '\n' ' ')
155+
if [ -n "$TEST_FILES" ]; then
156+
bun test $TEST_FILES
157+
else
158+
echo "No tests found in web"
159+
fi
154160
else
155161
# Run all non-integration tests in a single bun test invocation
156162
# This avoids xargs exit code issues with orphaned child processes

0 commit comments

Comments
 (0)