Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't show extra properties for test context #2116

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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()
})