Skip to content

Commit 4850a00

Browse files
test(web): type the console-warn matcher params in dev-warning.spec
CI's test-types pass (tsc over the test tsconfig) runs with noImplicitAny; the matcher added with the top-level async store tests left its callback params inferred. Test-only, no changeset. Co-authored-by: Cursor <[email protected]>
1 parent ae4f4fe commit 4850a00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/web/test/dev-warning.spec.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ describe("Deferred root mount — async stores", () => {
327327
}
328328

329329
const warned = (spy: ReturnType<typeof vi.spyOn>) =>
330-
spy.mock.calls.some(args =>
331-
args.some(a => typeof a === "string" && a.includes("Loading boundary"))
330+
spy.mock.calls.some((args: unknown[]) =>
331+
args.some((a: unknown) => typeof a === "string" && a.includes("Loading boundary"))
332332
);
333333

334334
test("optimistic store first flight: root mount held, warning fired, atomic reveal", async () => {

0 commit comments

Comments
 (0)