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,
enzymeTreeSerializer(),
compose(
stylePrinter,
replaceTransform({
CardComponent: justChildren,
CardContent: justChildren,
Gradient: propsNoChildren,
Loading: justChildren,
TimesImage: propsNoChildren,
...meltNative
}),
flattenStyleTransform,
hoistStyleTransform,
minimalWebTransform,
rnwTransform(AppRegistry, styles)
)
);
// eslint-disable-next-line global-require
require("jest-styled-components");
export default () => {
addSerializers(
expect,
enzymeTreeSerializer(),
compose(
print,
replaceTransform({
ArticleImage: justChildren,
ArticleImageWeb: justChildren,
Caption: justChildren,
InlineImage: justChildren,
InsetCaptionWeb: justChildren,
"responsive-styles__component": justChildren,
TimesImage: propsNoChildren,
...meltNative
}),
minimalWebTransform,
minimaliseTransform((value, key) => key === "style"),
rnwTransform(AppRegistry)
)
);
// eslint-disable-next-line global-require
export default () => {
addSerializers(
expect,
enzymeTreeSerializer(),
compose(
print,
minimalWebTransform,
minimaliseTransform(
(value, key) => key === "style" || key === "className"
),
replaceTransform({
CardComponent: justChildren,
CardContent: justChildren,
Gradient: propsNoChildren,
Loading: justChildren,
TimesImage: propsNoChildren,
...meltNative
}),
rnwTransform(AppRegistry)
)
);
shared(mount);
};
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,
enzymeRenderedSerializer(),
compose(
print,
replaceTransform({
svg: justChildren
}),
minimaliseTransform((value, key) => key !== "fill" && key !== "stroke"),
replacePropTransform(
(value, key) =>
longKeysSet.has(key) ? hash(JSON.stringify(value)) : value
)
)
);
shared(mount);
};
export default () => {
addSerializers(
expect,
compose(
print,
replaceTransform({
ARTSurfaceView: propsNoChildren,
RNSVGPath: propsNoChildren,
RNSVGSvgView: propsNoChildren
}),
flattenStyleTransform,
minimaliseTransform((value, key) => key === "opacity")
)
);
shared(TestRenderer.create);
};
export default () => {
addSerializers(
expect,
compose(
print,
replaceTransform({
ARTGroup: justChildren,
ARTSurfaceView: justChildren
}),
flattenStyleTransform,
minimaliseTransform((value, key) => key !== "stroke" && key !== "fill")
)
);
shared(TestRenderer.create);
};
export default () => {
addSerializers(
expect,
enzymeRenderedSerializer(),
compose(
print,
replaceTransform({
ArticleImage: justChildren,
ArticleImageWeb: justChildren,
Caption: justChildren,
TimesImage: propsNoChildren,
...meltNative
}),
minimalWebTransform,
minimaliseTransform(
(value, key) => key === "style" || key === "className"
),
rnwTransform(AppRegistry)
)
);
shared(component => mount(component));
};
export default () => {
addSerializers(
expect,
enzymeRenderedSerializer(),
compose(
print,
replaceTransform({
svg: propsNoChildren
}),
minimaliseTransform((value, key) => key === "style" || key === "viewBox"),
replacePropTransform(
(value, key) =>
longKeysSet.has(key) ? hash(JSON.stringify(value)) : value
)
)
);
shared(mount);
};