@fluent-windows/core
Version:
React components that inspired by Microsoft's Fluent Design System.
13 lines (12 loc) • 724 B
TypeScript
import * as React from 'react';
import { RenderOptions, RenderResult } from '@testing-library/react';
import { SheetsRegistry } from '@fluent-windows/styles';
import { StyleSheet } from 'jss';
interface MySheetsRegistry extends SheetsRegistry {
registry: StyleSheet[] | any;
}
interface Result extends RenderResult {
sheets: MySheetsRegistry;
}
declare const customRender: (ui: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>, options?: RenderOptions<typeof import("@testing-library/dom/queries")> | undefined) => Result;
export { customRender as render };