- default(
component: ReactNode,
options?: { routerProps?: RouterProps },
): Promise<
{
asFragment: () => DocumentFragment;
baseElement: HTMLElement;
container: HTMLElement;
debug: (
baseElement?: Container | Container[],
maxLength?: number,
options?: PrettyFormatOptions,
) => void;
findAllByAltText: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByDisplayValue: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByLabelText: (
...args: [
id: Matcher,
options?: SelectorMatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByPlaceholderText: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByRole: (
...args: [
role: ByRoleMatcher,
options?: ByRoleOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByTestId: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByText: (
...args: [
id: Matcher,
options?: SelectorMatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByTitle: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findByAltText: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByDisplayValue: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByLabelText: (
...args: [
id: Matcher,
options?: SelectorMatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByPlaceholderText: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByRole: (
...args: [
role: ByRoleMatcher,
options?: ByRoleOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByTestId: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByText: (
...args: [
id: Matcher,
options?: SelectorMatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByTitle: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
getAllByAltText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
getAllByDisplayValue: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
getAllByLabelText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement[];
getAllByPlaceholderText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
getAllByRole: (
...args: [role: ByRoleMatcher, options?: ByRoleOptions],
) => HTMLElement[];
getAllByTestId: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
getAllByText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement[];
getAllByTitle: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
getByAltText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement;
getByDisplayValue: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement;
getByLabelText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement;
getByPlaceholderText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement;
getByRole: (
...args: [role: ByRoleMatcher, options?: ByRoleOptions],
) => HTMLElement;
getByTestId: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement;
getByText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement;
getByTitle: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement;
queryAllByAltText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
queryAllByDisplayValue: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
queryAllByLabelText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement[];
queryAllByPlaceholderText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
queryAllByRole: (
...args: [role: ByRoleMatcher, options?: ByRoleOptions],
) => HTMLElement[];
queryAllByTestId: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
queryAllByText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement[];
queryAllByTitle: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
queryByAltText: (
...args: [id: Matcher, options?: MatcherOptions],
) => null | HTMLElement;
queryByDisplayValue: (
...args: [id: Matcher, options?: MatcherOptions],
) => null | HTMLElement;
queryByLabelText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => null | HTMLElement;
queryByPlaceholderText: (
...args: [id: Matcher, options?: MatcherOptions],
) => null | HTMLElement;
queryByRole: (
...args: [role: ByRoleMatcher, options?: ByRoleOptions],
) => null | HTMLElement;
queryByTestId: (
...args: [id: Matcher, options?: MatcherOptions],
) => null | HTMLElement;
queryByText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => null | HTMLElement;
queryByTitle: (
...args: [id: Matcher, options?: MatcherOptions],
) => null | HTMLElement;
rerender: (ui: ReactNode) => void;
unmount: () => void;
user: UserEvent;
},
> Parameters
- component: ReactNode
Optional
options: { routerProps?: RouterProps }
Returns Promise<
{
asFragment: () => DocumentFragment;
baseElement: HTMLElement;
container: HTMLElement;
debug: (
baseElement?: Container | Container[],
maxLength?: number,
options?: PrettyFormatOptions,
) => void;
findAllByAltText: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByDisplayValue: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByLabelText: (
...args: [
id: Matcher,
options?: SelectorMatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByPlaceholderText: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByRole: (
...args: [
role: ByRoleMatcher,
options?: ByRoleOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByTestId: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByText: (
...args: [
id: Matcher,
options?: SelectorMatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findAllByTitle: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement[]>;
findByAltText: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByDisplayValue: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByLabelText: (
...args: [
id: Matcher,
options?: SelectorMatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByPlaceholderText: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByRole: (
...args: [
role: ByRoleMatcher,
options?: ByRoleOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByTestId: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByText: (
...args: [
id: Matcher,
options?: SelectorMatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
findByTitle: (
...args: [
id: Matcher,
options?: MatcherOptions,
waitForElementOptions?: waitForOptions,
],
) => Promise<HTMLElement>;
getAllByAltText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
getAllByDisplayValue: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
getAllByLabelText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement[];
getAllByPlaceholderText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
getAllByRole: (
...args: [role: ByRoleMatcher, options?: ByRoleOptions],
) => HTMLElement[];
getAllByTestId: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
getAllByText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement[];
getAllByTitle: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
getByAltText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement;
getByDisplayValue: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement;
getByLabelText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement;
getByPlaceholderText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement;
getByRole: (
...args: [role: ByRoleMatcher, options?: ByRoleOptions],
) => HTMLElement;
getByTestId: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement;
getByText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement;
getByTitle: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement;
queryAllByAltText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
queryAllByDisplayValue: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
queryAllByLabelText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement[];
queryAllByPlaceholderText: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
queryAllByRole: (
...args: [role: ByRoleMatcher, options?: ByRoleOptions],
) => HTMLElement[];
queryAllByTestId: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
queryAllByText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => HTMLElement[];
queryAllByTitle: (
...args: [id: Matcher, options?: MatcherOptions],
) => HTMLElement[];
queryByAltText: (
...args: [id: Matcher, options?: MatcherOptions],
) => null | HTMLElement;
queryByDisplayValue: (
...args: [id: Matcher, options?: MatcherOptions],
) => null | HTMLElement;
queryByLabelText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => null | HTMLElement;
queryByPlaceholderText: (
...args: [id: Matcher, options?: MatcherOptions],
) => null | HTMLElement;
queryByRole: (
...args: [role: ByRoleMatcher, options?: ByRoleOptions],
) => null | HTMLElement;
queryByTestId: (
...args: [id: Matcher, options?: MatcherOptions],
) => null | HTMLElement;
queryByText: (
...args: [id: Matcher, options?: SelectorMatcherOptions],
) => null | HTMLElement;
queryByTitle: (
...args: [id: Matcher, options?: MatcherOptions],
) => null | HTMLElement;
rerender: (ui: ReactNode) => void;
unmount: () => void;
user: UserEvent;
},
>