16 lines
415 B
TypeScript
16 lines
415 B
TypeScript
|
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);
|