mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 06:55:22 -05:00
cbf08c599b
Fail tests on unhandled promise rejection GitOrigin-RevId: 3cc53ce5b46c63c62374eb83f9442b8d6979272e
9 lines
266 B
JavaScript
9 lines
266 B
JavaScript
const chai = require('chai')
|
|
chai.use(require('chai-as-promised'))
|
|
chai.use(require('chaid'))
|
|
|
|
// Crash the process on an unhandled promise rejection
|
|
process.on('unhandledRejection', err => {
|
|
console.error('Unhandled promise rejection:', err)
|
|
process.exit(1)
|
|
})
|