aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-15 00:10:33 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-15 00:12:34 -0800
commitbf75f61ddff892d78589b746af0c518fa7dd6ed0 (patch)
tree6648ca10a9522067f47dedeb7a0fcb4eef65ff10
parent1b608fcc8a5350cd461d0f711026ca64f9cf65be (diff)
downloadbun-bf75f61ddff892d78589b746af0c518fa7dd6ed0.tar.gz
bun-bf75f61ddff892d78589b746af0c518fa7dd6ed0.tar.zst
bun-bf75f61ddff892d78589b746af0c518fa7dd6ed0.zip
Update test types a little
cc @colinhacks `test` is an alias of `it` `done` accepts an `error` object
-rw-r--r--packages/bun-types/bun-test.d.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/bun-types/bun-test.d.ts b/packages/bun-types/bun-test.d.ts
index 1ec84492a..acd06bb72 100644
--- a/packages/bun-types/bun-test.d.ts
+++ b/packages/bun-types/bun-test.d.ts
@@ -19,11 +19,11 @@
declare module "bun:test" {
export function describe(label: string, body: () => void): any;
- export function it(label: string, test: () => void | Promise<any>): any;
export function test(
label: string,
- test: (done: () => void) => void | Promise<any>,
+ test: (done: (err?: any) => void) => void | Promise<any>,
): any;
+ export { test as it };
export function expect(value: any): Expect;
export function afterAll(fn: () => void): void;