UNPKG

jest-extended-snapshot

Version:
14 lines 558 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jest_snapshot_1 = require("jest-snapshot"); const get_all_combinations_1 = require("./get-all-combinations"); exports.default = { toVerifyAllCombinations(fn, ...args) { const snapshot = {}; get_all_combinations_1.getAllCombinations(args).forEach((combination) => { snapshot[combination.join(",")] = fn(...combination); }); return jest_snapshot_1.toMatchSnapshot.call(this, snapshot); }, }; //# sourceMappingURL=index.js.map