Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* eslint-disable global-require */
import "./mocks.native";
import { FontStorage } from "@times-components/typeset";
import shared from "./shared-tracking.base";
FontStorage.registerFont(
"TimesDigitalW04-Normal",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Bold",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Italic",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesModern-Regular",
() => require("@times-components/test-utils").TestFont
);
/* eslint-disable global-require */
import {
addSerializers,
compose,
print,
minimaliseTransform,
minimalNativeTransform
} from "@times-components/jest-serializer";
import "./mocks.native";
import { FontStorage } from "@times-components/typeset";
import shared from "./images.base";
FontStorage.registerFont(
"TimesDigitalW04-Normal",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Bold",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Italic",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesModern-Regular",
() => require("@times-components/test-utils").TestFont
);
/* eslint-disable global-require */
import TestRenderer from "react-test-renderer";
import {
addSerializers,
compose,
print,
minimaliseTransform,
minimalNativeTransform
} from "@times-components/jest-serializer";
import "./mocks.native";
import { FontStorage } from "@times-components/typeset";
import shared from "./header-with-style.base";
FontStorage.registerFont(
"TimesDigitalW04-Normal",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Bold",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Italic",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesModern-Regular",
() => require("@times-components/test-utils").TestFont
);
import {
addSerializers,
compose,
flattenStyleTransform,
minimaliseTransform,
print
} from "@times-components/jest-serializer";
import "./mocks.native";
import { FontStorage } from "@times-components/typeset";
import shared from "./images.base";
FontStorage.registerFont(
"TimesDigitalW04-Normal",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Bold",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Italic",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesModern-Regular",
() => require("@times-components/test-utils").TestFont
);
export default () => {
addSerializers(
expect,
compose(
minimalNativeTransform
} from "@times-components/jest-serializer";
import { iterator } from "@times-components/test-utils";
import "./mocks.native";
import { FontStorage } from "@times-components/typeset";
import snapshotTests from "./scaling.base";
FontStorage.registerFont(
"TimesDigitalW04-Normal",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Bold",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Italic",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesModern-Regular",
() => require("@times-components/test-utils").TestFont
);
export default () => {
addSerializers(
expect,
compose(
print,
minimalNativeTransform,
minimaliseTransform((value, key) => key !== "style"),
flattenStyleTransform
import { FontStorage } from "@times-components/typeset";
import shared from "./images.base";
FontStorage.registerFont(
"TimesDigitalW04-Normal",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Bold",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Italic",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesModern-Regular",
() => require("@times-components/test-utils").TestFont
);
const omitKeys = new Set([
"data",
"disableVirtualization",
"horizontal",
"onViewableItemsChanged",
"selectable",
"style",
"testID",
"viewabilityConfig",
"viewabilityConfigCallbackPairs"
]);
import { adConfig } from "./ad-mock";
import articleSkeletonProps from "./shared-article-skeleton-props";
FontStorage.registerFont(
"TimesDigitalW04-Normal",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Bold",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Italic",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesModern-Regular",
() => require("@times-components/test-utils").TestFont
);
const omitKeys = new Set([
"data",
"disableVirtualization",
"horizontal",
"onViewableItemsChanged",
"testID",
"viewabilityConfig",
"viewabilityConfigCallbackPairs"
]);
export default () => {
addSerializers(
print,
minimaliseTransform,
minimalNativeTransform
} from "@times-components/jest-serializer";
import "./mocks.native";
import Responsive from "@times-components/responsive";
import { setIsTablet } from "@times-components/mocks/dimensions";
import { FontStorage } from "@times-components/typeset";
import articleFixture from "../fixtures/full-article";
import shared, { renderArticle, fixtureArgs } from "./shared.base";
FontStorage.registerFont(
"TimesDigitalW04-Normal",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Bold",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Italic",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesModern-Regular",
() => require("@times-components/test-utils").TestFont
);
export default () => {
addSerializers(
expect,
compose(
minimaliseTransform,
minimalNativeTransform
} from "@times-components/jest-serializer";
import "./mocks.native";
import { FontStorage } from "@times-components/typeset";
import shared from "./header-with-style.base";
FontStorage.registerFont(
"TimesDigitalW04-Normal",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Bold",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Italic",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesModern-Regular",
() => require("@times-components/test-utils").TestFont
);
const omitKeys = new Set([
"data",
"disableVirtualization",
"horizontal",
"onViewableItemsChanged",
"style",
"testID",
"viewabilityConfig",
import shared from "./shared.base";
import ArticleSkeleton from "../src/article-skeleton";
import articleFixture, {
testFixture,
nestedContent,
styledNestedContent,
longContent
} from "../fixtures/full-article";
import { adConfig } from "./ad-mock";
import articleSkeletonProps from "./shared-article-skeleton-props";
FontStorage.registerFont(
"TimesDigitalW04-Normal",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Bold",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesDigitalW04-Italic",
() => require("@times-components/test-utils").TestFont
);
FontStorage.registerFont(
"TimesModern-Regular",
() => require("@times-components/test-utils").TestFont
);
const omitKeys = new Set([
"data",
"disableVirtualization",
"horizontal",