@storybook/test 0.0.0-pr-24604-sha-a206c3eb → 0.0.0-pr-24676-sha-c841f892
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +3 -2
- package/dist/index.js +11 -21
- package/dist/index.mjs +11 -21
- package/package.json +5 -5
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 * as matchers from '@testing-library/jest-dom/matchers';
|
3
3
|
export * from '@vitest/spy';
|
4
4
|
import * as _testing_library_user_event_dist_types_setup_directApi from '@testing-library/user-event/dist/types/setup/directApi';
|
5
5
|
import * as _testing_library_user_event_dist_types_setup_setup from '@testing-library/user-event/dist/types/setup/setup';
|
@@ -10,7 +10,8 @@ type PromisifyObject<O> = {
|
|
10
10
|
[K in keyof O]: Promisify<O[K]>;
|
11
11
|
};
|
12
12
|
|
13
|
-
|
13
|
+
type Matchers<T> = PromisifyObject<JestAssertion<T>> & matchers.TestingLibraryMatchers<ReturnType<ExpectStatic['stringContaining']>, Promise<void>>;
|
14
|
+
interface Assertion<T> extends Matchers<T> {
|
14
15
|
toHaveBeenCalledOnce(): Promise<void>;
|
15
16
|
toSatisfy<E>(matcher: (value: E) => boolean, message?: string): Promise<void>;
|
16
17
|
resolves: Assertion<T>;
|