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");
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))
export default () => {
addSerializers(
expect,
enzymeRenderedSerializer(),
compose(
stylePrinter,
rnwTransform(AppRegistry),
minimalWebTransform,
minimaliseTransform(
(value, key) => key === "style" || key === "className"
)
)
);
iterator(shared());
};
export default () => {
addSerializers(
expect,
compose(
stylePrinter,
hoistStyleTransform,
rnwTransform(AppRegistry, [
"color",
"flexWrap",
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"marginBottom"
]),
minimaliseTransform((value, key) => key === "tile"),
minimalWebTransform
)
);
shared();
};
export default () => {
addSerializers(
expect,
compose(
stylePrinter,
minimaliseTransform(
(value, key) => key === "style" || key === "data-testid"
),
minimalWebTransform,
rnwTransform(AppRegistry)
)
);
shared();
};
export default () => {
addSerializers(
expect,
compose(
stylePrinter,
hoistStyleTransform,
rnwTransform(AppRegistry, [
"color",
"flexWrap",
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"marginBottom"
]),
minimalWebTransform
)
);
shared();
};
export default () => {
addSerializers(
expect,
compose(
stylePrinter,
minimalWebTransform,
rnwTransform(AppRegistry)
)
);
shared();
};