Skip to content

Commit

Permalink
Revert "adjust vitest ambient declaration file according to vitest do…
Browse files Browse the repository at this point in the history
…cs (testing-library#612)"

This reverts commit 06d19ba.
  • Loading branch information
vorant94 committed Sep 12, 2024
1 parent 4723de3 commit 3fcc061
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions types/vitest.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import {type expect} from 'vitest'
import {type TestingLibraryMatchers} from './matchers'

declare module 'vitest' {
interface Assertion<T = any>
export {}
declare module '@vitest/expect' {
interface JestAssertion<T = any>
extends TestingLibraryMatchers<
ReturnType<typeof expect.stringContaining>,
T
> {}
interface AsymmetricMatchersContaining
extends TestingLibraryMatchers<
ReturnType<typeof expect.stringContaining>,
any
> {}
}

0 comments on commit 3fcc061

Please sign in to comment.