Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default () => {
addSerializers(
expect,
compose(
stylePrinter,
minimalWebTransform,
minimaliseTransform(
(value, key) => key !== "style" && key !== "className"
),
flattenStyleTransform,
hoistStyleTransform,
rnwTransform(AppRegistry, styles)
)
);
// eslint-disable-next-line global-require
require("jest-styled-components");
export default () => {
addSerializers(
expect,
compose(
print,
minimalWebTransform,
minimaliseTransform(
(value, key) => key === "style" || key === "className"
),
replacePropTransform((value, key) => (key === "d" ? hash(value) : value))
)
);
// eslint-disable-next-line global-require
require("jest-styled-components");
const tests = [
{
export default () => {
addSerializers(
expect,
enzymeRootSerializer(),
compose(
print,
minimaliseTransform((value, key) => key === "style" || key === "value")
)
);
it("advert", () => {
const wrapper = shallow(
);
export default () => {
addSerializers(
expect,
compose(
print,
minimalNativeTransform,
minimaliseTransform((value, key) => omitKeys.has(key))
)
);
const tests = [
{
name: "an inline link uses the given onPress",
test() {
const onLinkPress = jest.fn();
const testInstance = TestRenderer.create(
export default () => {
addSerializers(
expect,
compose(
print,
minimalNativeTransform,
minimaliseTransform((value, key) => key !== "style"),
flattenStyleTransform
)
);
const tests = [
{
name: "Article Magazine Standard - Tablet",
test() {
setIsTablet(true);
const testInstance = TestRenderer.create(
export default Component => {
addSerializers(
expect,
compose(
stylePrinter,
hoistStyleTransform,
minimalWebTransform,
rnwTransform(AppRegistry, [
"fontSize",
"fontFamily",
"color",
"lineHeight",
"flexDirection"
])
)
);
shared(Component);
export default () => {
addSerializers(
expect,
enzymeTreeSerializer(),
compose(
stylePrinter,
flattenStyleTransform,
replaceTransform({
Ad: propsNoChildren,
AdComposer: justChildren,
Broadcast: justChildren,
...meltNative
}),
rnwTransform()
)
);
shared(component => mount({component}));
export default () => {
addSerializers(
expect,
compose(
print,
minimalNativeTransform,
minimaliseTransform((value, key) => key === "style" || key === "testID")
)
);
shared();
};
export default () => {
addSerializers(
expect,
compose(
stylePrinter,
minimalWebTransform,
rnwTransform(AppRegistry)
)
);
shared();
};
export default () => {
addSerializers(
expect,
compose(
print,
minimalNativeTransform,
minimaliseTransform((value, key) => omitKeys.has(key))
)
);
beforeEach(() => {
mockDate.set(1514764800000, 0);
});
afterEach(() => {
mockDate.reset();
});