mirror of https://github.com/thumbsup/thumbsup
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
326 B
JavaScript
13 lines
326 B
JavaScript
const path = require('path')
|
|
const requireAll = require('require-all')
|
|
|
|
// require all source code
|
|
// so that the coverage report is accurate
|
|
requireAll(path.join(__dirname, '..', 'src'))
|
|
|
|
// capture all unhandled rejected promises
|
|
// and ensure the current test fails
|
|
process.on('unhandledRejection', err => {
|
|
throw err
|
|
})
|