diff --git a/code/lib/test/src/expect.ts b/code/lib/test/src/expect.ts index 5a3fb334afd4..7e8b9d95cf03 100644 --- a/code/lib/test/src/expect.ts +++ b/code/lib/test/src/expect.ts @@ -17,10 +17,11 @@ import { import * as matchers from '@testing-library/jest-dom/matchers'; import type { PromisifyObject } from './utils'; +type Matchers = PromisifyObject> & + matchers.TestingLibraryMatchers, Promise>; + // We only expose the jest compatible API for now -export interface Assertion - extends PromisifyObject>, - matchers.TestingLibraryMatchers, Promise> { +export interface Assertion extends Matchers { toHaveBeenCalledOnce(): Promise; toSatisfy(matcher: (value: E) => boolean, message?: string): Promise; resolves: Assertion;