Skip to content

Commit

Permalink
fix: don't show extra properties for test context (#2116)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Oct 10, 2022
1 parent a24c873 commit 3d5f502
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions packages/vitest/src/types/tasks.ts
Expand Up @@ -204,11 +204,6 @@ export interface RuntimeContext {
}

export interface TestContext {
/**
* @deprecated Use promise instead
*/
(error?: any): void

/**
* Metadata of the current test
*/
Expand Down
1 change: 1 addition & 0 deletions test/core/test/basic.test.ts
Expand Up @@ -55,5 +55,6 @@ test.skip('async with timeout', async () => {
it('timeout', () => new Promise(resolve => setTimeout(resolve, timeout)))

it.fails('deprecated done callback', (done) => {
// @ts-expect-error deprecated done callback is not typed
done()
})

0 comments on commit 3d5f502

Please sign in to comment.