jest-extended-snapshot
Version:
Additional Jest matchers for snapshot testing
14 lines • 558 B
JavaScript
;
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