@looker/components-test-utils
Advanced tools
Comparing version 0.9.8-alpha.48 to 0.9.8-faux.44
import { RenderOptions } from '@testing-library/react'; | ||
import 'jest-styled-components'; | ||
import React, { 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<{}>, React.Component<{}, {}, any>>; | ||
export declare const shallowWithTheme: (Component: ReactElement<any>) => import("enzyme").ShallowWrapper<any, Readonly<{}>, 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")>; | ||
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")>; |
@@ -22,3 +22,5 @@ "use strict"; | ||
var withThemeProvider = Component => _react2.default.createElement(_componentsProviders.ComponentsProvider, null, Component); | ||
var withThemeProvider = Component => _react2.default.createElement(_componentsProviders.ComponentsProvider, { | ||
globalStyle: false | ||
}, Component); | ||
@@ -25,0 +27,0 @@ exports.withThemeProvider = withThemeProvider; |
{ | ||
"name": "@looker/components-test-utils", | ||
"license": "MIT", | ||
"version": "0.9.8-alpha.48+a84bf88f", | ||
"version": "0.9.8-faux.44+e647a3fc", | ||
"main": "lib/index.js", | ||
@@ -19,3 +19,3 @@ "types": "lib/index.d.ts", | ||
"devDependencies": { | ||
"@looker/components-providers": "^0.9.8-alpha.48+a84bf88f", | ||
"@looker/components-providers": "^0.9.8-faux.44+e647a3fc", | ||
"@testing-library/react": "^10.4.7", | ||
@@ -35,3 +35,3 @@ "@types/enzyme": "^3.10.5", | ||
}, | ||
"gitHead": "a84bf88f016336edc38d310a483da22c5a8b2343" | ||
"gitHead": "e647a3fccea44622dff38e0e3b932acd44f60175" | ||
} |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
21011
163