1
0
Fork 0
js-utils/test/harness.ts

16 lines
415 B
TypeScript
Raw Normal View History

import { use } from 'chai';
import chaiAsPromised from 'chai-as-promised';
import sinonChai from 'sinon-chai';
/**
* This will break the whole test run if any test leaks an unhandled rejection.
*/
process.on('unhandledRejection', (reason, promise) => {
// tslint:disable-next-line:no-console
console.error('unhandled error during tests', reason);
process.exit(1);
});
use(chaiAsPromised);
use(sinonChai);