@storybook/test 8.0.0-alpha.16 → 8.0.0-alpha.17

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AsymmetricMatchersContaining, MatchersObject, MatcherState, JestAssertion, ExpectStatic } from '@vitest/expect';
2
- import * as matchers from '@testing-library/jest-dom/matchers';
2
+ import { TestingLibraryMatchers } from '@testing-library/jest-dom/types/matchers';
3
3
  import { MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep } from '@vitest/spy';
4
4
  export * from '@vitest/spy';
5
5
  export { fn, isMockFunction, mocks, spyOn } from '@vitest/spy';
@@ -11,7 +11,7 @@ type PromisifyObject<O> = {
11
11
  [K in keyof O]: Promisify<O[K]>;
12
12
  };
13
13
 
14
- type Matchers<T> = PromisifyObject<JestAssertion<T>> & matchers.TestingLibraryMatchers<ReturnType<ExpectStatic['stringContaining']>, Promise<void>>;
14
+ type Matchers<T> = PromisifyObject<JestAssertion<T>> & TestingLibraryMatchers<ReturnType<ExpectStatic['stringContaining']>, Promise<void>>;
15
15
  interface Assertion<T> extends Matchers<T> {
16
16
  toHaveBeenCalledOnce(): Promise<void>;
17
17
  toSatisfy<E>(matcher: (value: E) => boolean, message?: string): Promise<void>;