mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
3da8413156
Defer flushing to TPDS on project import from v1 GitOrigin-RevId: f2782326716999c37565b3e527b54444bbc53711
12 lines
337 B
JavaScript
12 lines
337 B
JavaScript
const chai = require('chai')
|
|
chai.use(require('chai-as-promised'))
|
|
chai.use(require('chaid'))
|
|
|
|
// Do not truncate assertion errors
|
|
chai.config.truncateThreshold = 0
|
|
|
|
// Crash the process on an unhandled promise rejection
|
|
process.on('unhandledRejection', err => {
|
|
console.error('Unhandled promise rejection:', err)
|
|
process.exit(1)
|
|
})
|