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,
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");
const props = {
analyticsStream() {},
const { AppRegistry } = require("react-native-web");
const {
addSerializers,
compose,
minimalWebTransform,
print,
rnwTransform
} = require("@times-components/jest-serializer");
addSerializers(
expect,
compose(
print,
minimalWebTransform,
rnwTransform(AppRegistry)
)
);
// eslint-disable-next-line global-require
require("jest-styled-components");
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");
beforeEach(() => {
const nuk = {
user: {
isLoggedIn: true
}
};
global.nuk = nuk;
});
afterEach(() => {
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");
beforeEach(() => {
const nuk = {
user: {
isLoggedIn: true
}
};
global.nuk = nuk;
});
afterEach(() => {
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");
beforeEach(() => {
const nuk = {
user: {
isLoggedIn: true
}
};
global.nuk = nuk;
});
afterEach(() => {
"lineHeight",
"marginBottom",
"marginTop"
];
jest.mock("@times-components/card", () => "Card");
jest.mock("@times-components/link", () => "Link");
addSerializers(
expect,
enzymeRenderedSerializer(),
compose(
stylePrinter,
minimalWebTransform,
minimaliseTransform((value, key) => key !== "style" && key !== "className"),
rnwTransform(AppRegistry, styles),
hoistStyleTransform
)
);
// eslint-disable-next-line global-require
require("jest-styled-components");
export default () => {
addSerializers(
expect,
enzymeRenderedSerializer(),
compose(
stylePrinter,
rnwTransform(AppRegistry),
minimalWebTransform,
minimaliseTransform(
(value, key) => key !== "style" && key !== "className"
)
)
);
// eslint-disable-next-line global-require
require("jest-styled-components");
iterator([
{
name: "mpu config",
test: () => {
expect(
TestRenderer.create(renderParagraph(dropCapData))
} from "@times-components/jest-serializer";
const styles = [
"borderBottomColor",
"borderBottomWidth",
"borderStyle",
"paddingBottom",
"paddingLeft",
"paddingRight",
"paddingTop",
"width"
];
addSerializers(
expect,
enzymeRenderedSerializer(),
compose(
stylePrinter,
minimalWebTransform,
flattenStyleTransform,
rnwTransform(AppRegistry, styles)
)
);
// eslint-disable-next-line global-require
require("jest-styled-components");