Skip to content

Commit

Permalink
Change type for expect().toThrow(unknown) (#8373)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton authored Jan 22, 2024
1 parent 3bc0f90 commit c21dc25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion bench/snippets/shell-spawn.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,4 @@ group("ls .", () => {
});
});


await run();
2 changes: 1 addition & 1 deletion packages/bun-types/test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ declare module "bun:test" {
*
* @param expected the expected error, error message, or error pattern
*/
toThrow(expected?: string | Error | ErrorConstructor | RegExp): void;
toThrow(expected?: unknown): void;
/**
* Asserts that a value matches a regular expression or includes a substring.
*
Expand Down

0 comments on commit c21dc25

Please sign in to comment.