UNPKG

jest-prettyhtml-matchers

Version:

Custom Jest snapshot matchers that use prettyhtml to format strings.

17 lines 983 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createPrettyHtmlMatchers = void 0; const create_formatter_1 = require("./create-formatter"); const create_to_match_inline_prettyhtml_snapshot_1 = require("./create-to-match-inline-prettyhtml-snapshot"); const create_to_match_prettyhtml_snapshot_1 = require("./create-to-match-prettyhtml-snapshot"); const createPrettyHtmlMatchers = (options = {}) => { const format = (0, create_formatter_1.createFormatter)(options); const toMatchPrettyHtmlSnapshot = (0, create_to_match_prettyhtml_snapshot_1.createToMatchPrettyHtmlSnapshot)(format); const toMatchInlinePrettyHtmlSnapshot = (0, create_to_match_inline_prettyhtml_snapshot_1.createToMatchInlinePrettyHtmlSnapshot)(format); return { toMatchPrettyHtmlSnapshot, toMatchInlinePrettyHtmlSnapshot, }; }; exports.createPrettyHtmlMatchers = createPrettyHtmlMatchers; //# sourceMappingURL=create-prettyhtml-matchers.js.map