Skip to content

Commit 6fb919e

Browse files
committed
test(signals): give the tree-shaking suite a 30 s timeout
Every test in treeshake.test.ts runs a full Vite build of a fixture. The first one pays the bundler's cold start, and under the whole suite's load on CI it has run past vitest's 5 s default (5,295 ms on #4510, and on other PRs earlier today) without any assertion failing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
1 parent ecf3011 commit 6fb919e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/signals/tests/treeshake.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ function retainedFrom(retained: string[], names: string[]): string[] {
6767
return names.filter(name => retained.some(id => id.includes(name)));
6868
}
6969

70-
describe("pay-for-use tree-shaking (#2883)", () => {
70+
// Every test runs a full Vite build of a fixture, and the first one pays the
71+
// bundler's cold start: under the whole suite's load on CI it ran past
72+
// vitest's 5 s default (5,295 ms) while asserting nothing wrong.
73+
describe("pay-for-use tree-shaking (#2883)", { timeout: 30_000 }, () => {
7174
it("core floor sheds every optional feature module", async () => {
7275
const { minifiedBytes, retained } = await bundleFixture(
7376
`export { createSignal, createMemo, createEffect, createRoot, flush } from "sigsrc";`

0 commit comments

Comments
 (0)