diff options
author | 2022-11-15 00:10:33 -0800 | |
---|---|---|
committer | 2022-11-15 00:12:34 -0800 | |
commit | bf75f61ddff892d78589b746af0c518fa7dd6ed0 (patch) | |
tree | 6648ca10a9522067f47dedeb7a0fcb4eef65ff10 | |
parent | 1b608fcc8a5350cd461d0f711026ca64f9cf65be (diff) | |
download | bun-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.ts | 4 |
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; |