Files
starface-outlook-sync-addin/node_modules/@fluentui/react/lib/common/testUtilities.d.ts
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

22 lines
1.2 KiB
TypeScript

import * as React from 'react';
export declare function getBySelector(container: HTMLElement | Element, selector: string): Element | null;
export declare function getByAllSelector(container: HTMLElement | Element, selector: string): NodeListOf<Element>;
export declare function findNodesV2(container: HTMLElement, selector: string): HTMLElement[];
export declare function expectNodesV2(container: HTMLElement, className: string, n: number): void;
export declare function expectOneV2(container: HTMLElement, selector: string): void;
/** @deprecated Use fake timers and `jest.runAllTimers()` instead */
export declare function delay(millisecond: number): Promise<void>;
export declare function renderIntoDocument(element: React.ReactElement<any>): HTMLElement;
export declare function mockEvent(targetValue?: string): {
target: EventTarget;
};
/**
* Hack for forcing Jest to run pending promises
* https://github.com/facebook/jest/issues/2157#issuecomment-897935688
*/
export declare function flushPromises(): Promise<void>;
/**
* Verify that the given element and its parents do NOT have `aria-hidden` set.
*/
export declare function expectNoHiddenParents(element: HTMLElement): void;