@storybook/test 8.0.0-alpha.15 → 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 +2 -2
- package/dist/index.js +32 -32
- package/dist/index.mjs +34 -34
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AsymmetricMatchersContaining, MatchersObject, MatcherState, JestAssertion, ExpectStatic } from '@vitest/expect';
|
2
|
-
import
|
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>> &
|
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>;
|