mockttp
Version:
Mock HTTP server for testing HTTP clients and stubbing webservices
11 lines • 392 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isErrorLike = isErrorLike;
// Useful to easily cast and then examine errors that are otherwise 'unknown':
function isErrorLike(error) {
return typeof error === 'object' && (error instanceof Error ||
error.message ||
error.code ||
error.stack);
}
//# sourceMappingURL=error.js.map