@fgv/ts-utils-jest
Version:
Custom matchers for ts-utils result class
18 lines • 497 B
JavaScript
import matchers from './matchers';
import './types';
import * as MockFs from './helpers/fsHelpers';
export { MockFs };
function isJestGlobal(g) {
return g.hasOwnProperty('expect');
}
/* c8 ignore else */
if (isJestGlobal(global)) {
global.expect.extend(matchers);
}
else {
console.error([
"Unable to find Jest's global expect",
'Please check that you have added ts-utils-jest correctly to your jest configuration.'
].join('\n'));
}
//# sourceMappingURL=index.js.map