overleaf/services/web/test/acceptance/bootstrap.js
Simon Detheridge 29f09c50c2 Merge pull request #3071 from overleaf/spd-unhandled-promises-in-tests
Treat unhandled promise rejections as errors in tests

GitOrigin-RevId: ba9d8fa02e0687c6b2d1d95e495fe0b54bb0cff5
2020-08-12 02:07:09 +00:00

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