@looker/components-test-utils
Advanced tools
Comparing version 0.9.25 to 0.9.26
import { RenderOptions } from '@testing-library/react'; | ||
import 'jest-styled-components'; | ||
import React from 'react'; | ||
export declare const withThemeProvider: (Component: 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>)>) => JSX.Element; | ||
export declare const createWithTheme: (Component: 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>)>) => import("react-test-renderer").ReactTestRenderer; | ||
export declare const mountWithTheme: (Component: 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>)>) => import("enzyme").ReactWrapper<any, Readonly<{}>, React.Component<{}, {}, any>>; | ||
export declare const shallowWithTheme: (Component: 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>)>) => import("enzyme").ShallowWrapper<any, Readonly<{}>, React.Component<{}, {}, any>>; | ||
export declare const renderWithTheme: (Component: 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?: Pick<RenderOptions<typeof import("@testing-library/dom/types/queries")>, "container" | "baseElement" | "hydrate" | "wrapper"> | undefined) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries")>; | ||
import { ReactElement } from 'react'; | ||
export declare const withThemeProvider: (Component: ReactElement<any>) => JSX.Element; | ||
export declare const createWithTheme: (Component: ReactElement<any>) => import("react-test-renderer").ReactTestRenderer; | ||
export declare const mountWithTheme: (Component: ReactElement<any>) => import("enzyme").ReactWrapper<any, Readonly<{}>, import("react").Component<{}, {}, any>>; | ||
export declare const shallowWithTheme: (Component: ReactElement<any>) => import("enzyme").ShallowWrapper<any, Readonly<{}>, import("react").Component<{}, {}, any>>; | ||
export declare const renderWithTheme: (Component: ReactElement<any>, options?: Pick<RenderOptions<typeof import("@testing-library/dom/types/queries")>, "container" | "baseElement" | "hydrate" | "wrapper"> | undefined) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries")>; |
{ | ||
"name": "@looker/components-test-utils", | ||
"license": "MIT", | ||
"version": "0.9.25", | ||
"version": "0.9.26", | ||
"main": "lib/index.js", | ||
@@ -19,6 +19,6 @@ "types": "lib/index.d.ts", | ||
"devDependencies": { | ||
"@looker/components-providers": "^0.9.25", | ||
"@testing-library/react": "^11.1.0", | ||
"@looker/components-providers": "^0.9.26", | ||
"@testing-library/react": "^11.2.2", | ||
"@types/enzyme": "^3.10.8", | ||
"@types/jest": "^26.0.14", | ||
"@types/jest": "^26.0.19", | ||
"@types/react": "^16.9.56", | ||
@@ -37,3 +37,3 @@ "@types/react-test-renderer": "^16.9.3", | ||
}, | ||
"gitHead": "a3a941db04bf7618696ee31e613f18786eccbd7b" | ||
"gitHead": "0b7bcf14daaeecd8af8c25b9b099c39a19b5650b" | ||
} |
24002
199