UNPKG

e2ed

Version:

E2E testing framework over Playwright

15 lines (14 loc) 624 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getIsTestOptionsDifferent = void 0; /** * Returns `true`, if test options different, and `false` otherwise. * @internal */ const getIsTestOptionsDifferent = (firstOptions, secondOptions) => { const firstMeta = { ...firstOptions.meta, skipReason: undefined }; const secondMeta = { ...secondOptions.meta, skipReason: undefined }; return (JSON.stringify({ ...firstOptions, meta: firstMeta }) !== JSON.stringify({ ...secondOptions, meta: secondMeta })); }; exports.getIsTestOptionsDifferent = getIsTestOptionsDifferent;