UNPKG

jest-prettyhtml-matchers

Version:

Custom Jest snapshot matchers that use prettyhtml to format strings.

10 lines 509 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.createFormatter = void 0; const prettyhtml_1 = __importDefault(require("@starptech/prettyhtml")); const createFormatter = (options) => (input) => (0, prettyhtml_1.default)(input, options).contents; exports.createFormatter = createFormatter; //# sourceMappingURL=create-formatter.js.map