Skip to content

Commit

Permalink
chore: log out the unhandled rejections
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Dec 10, 2024
1 parent 27636a7 commit 7381a2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/build/tests/plugins_list/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import test from 'ava'
import cpy from 'cpy'

const FIXTURES_DIR = fileURLToPath(new URL('fixtures', import.meta.url))

process.addListener('unhandledRejection', (reason, promise) => {
const stack = new Error().stack
console.log('hey', { reason, promise, stack })
})
const runWithApiMock = async function (
t,
fixtureName,
Expand Down

0 comments on commit 7381a2e

Please sign in to comment.