@storybook/test 0.0.0-pr-25791-sha-731531eb → 0.0.0-pr-25827-sha-620cb807
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +23 -7
- package/dist/index.js +31 -41
- package/dist/index.mjs +22 -32
- package/jest.config.js +7 -0
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
@@ -2,9 +2,10 @@ import { AsymmetricMatchersContaining, MatchersObject, MatcherState, JestAsserti
|
|
2
2
|
import * as matchers from '@testing-library/jest-dom/matchers';
|
3
3
|
import { MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep } from '@vitest/spy';
|
4
4
|
export * from '@vitest/spy';
|
5
|
-
export { fn, isMockFunction, mocks, spyOn } from '@vitest/spy';
|
5
|
+
export { fn, isMockFunction, spies as mocks, spyOn } from '@vitest/spy';
|
6
|
+
import * as _testing_library_user_event_dist_types_setup_directApi from '@testing-library/user-event/dist/types/setup/directApi';
|
7
|
+
import * as _testing_library_user_event_dist_types_setup_setup from '@testing-library/user-event/dist/types/setup/setup';
|
6
8
|
import * as domTestingLibrary from '@testing-library/dom';
|
7
|
-
import _userEvent from '@testing-library/user-event';
|
8
9
|
|
9
10
|
type Promisify<Fn> = Fn extends (...args: infer A) => infer R ? (...args: A) => R extends Promise<any> ? R : Promise<R> : Fn;
|
10
11
|
type PromisifyObject<O> = {
|
@@ -151,11 +152,26 @@ declare const waitFor: typeof domTestingLibrary.waitFor;
|
|
151
152
|
declare const waitForElementToBeRemoved: typeof domTestingLibrary.waitForElementToBeRemoved;
|
152
153
|
declare const within: typeof domTestingLibrary.getQueriesForElement;
|
153
154
|
declare const prettyFormat: typeof domTestingLibrary.prettyFormat;
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
155
|
+
declare const userEvent: {
|
156
|
+
readonly setup: typeof _testing_library_user_event_dist_types_setup_setup.setupMain;
|
157
|
+
readonly clear: typeof _testing_library_user_event_dist_types_setup_directApi.clear;
|
158
|
+
readonly click: typeof _testing_library_user_event_dist_types_setup_directApi.click;
|
159
|
+
readonly copy: typeof _testing_library_user_event_dist_types_setup_directApi.copy;
|
160
|
+
readonly cut: typeof _testing_library_user_event_dist_types_setup_directApi.cut;
|
161
|
+
readonly dblClick: typeof _testing_library_user_event_dist_types_setup_directApi.dblClick;
|
162
|
+
readonly deselectOptions: typeof _testing_library_user_event_dist_types_setup_directApi.deselectOptions;
|
163
|
+
readonly hover: typeof _testing_library_user_event_dist_types_setup_directApi.hover;
|
164
|
+
readonly keyboard: typeof _testing_library_user_event_dist_types_setup_directApi.keyboard;
|
165
|
+
readonly pointer: typeof _testing_library_user_event_dist_types_setup_directApi.pointer;
|
166
|
+
readonly paste: typeof _testing_library_user_event_dist_types_setup_directApi.paste;
|
167
|
+
readonly selectOptions: typeof _testing_library_user_event_dist_types_setup_directApi.selectOptions;
|
168
|
+
readonly tripleClick: typeof _testing_library_user_event_dist_types_setup_directApi.tripleClick;
|
169
|
+
readonly type: typeof _testing_library_user_event_dist_types_setup_directApi.type;
|
170
|
+
readonly unhover: typeof _testing_library_user_event_dist_types_setup_directApi.unhover;
|
171
|
+
readonly upload: typeof _testing_library_user_event_dist_types_setup_directApi.upload;
|
172
|
+
readonly tab: typeof _testing_library_user_event_dist_types_setup_directApi.tab;
|
173
|
+
};
|
158
174
|
|
159
175
|
declare const expect: Expect;
|
160
176
|
|
161
|
-
export {
|
177
|
+
export { buildQueries, clearAllMocks, configure, createEvent, expect, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, fireEvent, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, mocked, prettyDOM, prettyFormat, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, resetAllMocks, restoreAllMocks, screen, userEvent, waitFor, waitForElementToBeRemoved, within };
|