UNPKG

serverless-spy

Version:

CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.

16 lines (12 loc) 265 B
var tmp = require('../lib/tmp'), spawn = require('./spawn'); var graceful = spawn.arg; if (graceful) { tmp.setGracefulCleanup(); } spawn.tmpFunction(function (err, name) { spawn.out(name, function () { throw new Error('Thrown on purpose'); }); });