Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 5, 2022
1 parent f169f5a commit a52d421
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vitest/src/types/tasks.ts
Expand Up @@ -50,7 +50,7 @@ export interface Test<ExtraContext = {}> extends TaskBase {
export type Task = Test | Suite | File

export type DoneCallback = (error?: any) => void
export type TestFunction<ExtraContext = {}> = (context: TestContext & ExtraContext) => Awaitable<any>
export type TestFunction<ExtraContext = {}> = (context: TestContext & ExtraContext) => Awaitable<any> | void

// jest's ExtractEachCallbackArgs
type ExtractEachCallbackArgs<T extends ReadonlyArray<any>> = {
Expand Down
2 changes: 1 addition & 1 deletion test/core/test/basic.test.ts
Expand Up @@ -45,7 +45,7 @@ hi.test('expect truthy', () => {

// Remove .skip to test async fail by timeout
test.skip('async with timeout', async () => {
return new Promise((resolve) => {
return new Promise<void>((resolve) => {
setTimeout(() => {
resolve()
}, 200)
Expand Down

0 comments on commit a52d421

Please sign in to comment.