mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 06:35:13 -05:00
29f09c50c2
Treat unhandled promise rejections as errors in tests GitOrigin-RevId: ba9d8fa02e0687c6b2d1d95e495fe0b54bb0cff5
6 lines
165 B
JavaScript
6 lines
165 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
|