shallow-render
Version:
Shallow rendering test utility for Angular
21 lines • 668 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.jestFramework = void 0;
exports.jestFramework = {
createSpy: () => jest.fn(),
isSpy: (mockFunction) => jest.isMockFunction(mockFunction),
spyOn(object, method, mockImplementation) {
const spy = jest.spyOn(object, method);
if (!!mockImplementation) {
this.mockImplementation(spy, mockImplementation);
}
return spy;
},
mockImplementation(spy, mockImplementation) {
spy.mockImplementation(mockImplementation);
},
resetSpy(spy) {
spy.mockReset();
},
};
//# sourceMappingURL=jest.framework.js.map