Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Oct 31, 2023
1 parent 76c3821 commit b4fb3b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/lib/test/src/expect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ import {
setState,
} from '@vitest/expect';
import * as matchers from '@testing-library/jest-dom/matchers';
import type { TestingLibraryMatchers } from '@testing-library/jest-dom/types/matchers';
import type { PromisifyObject } from './utils';

// We only expose the jest compatible API for now
export interface Assertion<T>
extends PromisifyObject<JestAssertion<T>>,
TestingLibraryMatchers<ReturnType<ExpectStatic['stringContaining']>, Promise<void>> {
matchers.TestingLibraryMatchers<ReturnType<ExpectStatic['stringContaining']>, Promise<void>> {
toHaveBeenCalledOnce(): Promise<void>;
toSatisfy<E>(matcher: (value: E) => boolean, message?: string): Promise<void>;
resolves: Assertion<T>;
Expand Down

0 comments on commit b4fb3b0

Please sign in to comment.