UNPKG

1.51 kBTypeScriptView Raw
1import { axe } from 'jest-axe';
2import React, { ReactNode } from 'react';
3import renderer from 'react-test-renderer';
4import { Meta } from '@storybook/react';
5import { TypeaheadContextType } from '../core/Context';
6export { axe };
7export * from '@storybook/testing-react';
8export * from '@testing-library/react';
9export { default as userEvent } from '@testing-library/user-event';
10export declare function noop(): void;
11export declare function prepareSnapshot(element: React.ReactElement): renderer.ReactTestRendererJSON | renderer.ReactTestRendererJSON[] | null;
12interface StoriesImport {
13 default: Meta;
14}
15export declare function generateSnapshots(stories: StoriesImport): void;
16interface HintProviderProps extends Partial<TypeaheadContextType> {
17 children?: ReactNode;
18}
19export declare const HintProvider: ({ children, ...context }: HintProviderProps) => JSX.Element;
20export declare function getHint(container: HTMLElement): Element;
21export declare function findInput(multiple?: boolean): Promise<HTMLElement>;
22export declare function getInput(): HTMLInputElement | null;
23export declare function findItems(): Promise<HTMLElement[]>;
24export declare function getItems(): HTMLElement[];
25export declare function findMenu(): Promise<HTMLElement>;
26export declare function getMenu(): HTMLElement | null;
27export declare function findPaginator(): Promise<HTMLElement>;
28export declare function getTokens(container: HTMLElement): HTMLCollectionOf<Element>;
29export declare function waitForOverlay(): Promise<void>;