We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 269c4a6 commit 3cbe657Copy full SHA for 3cbe657
test/index.test.js
@@ -22,6 +22,7 @@ test('main', async () => {
22
]
23
})
24
const stats = await util.promisify(compiler.run.bind(compiler))()
25
- expect(stats.hasErrors()).toBe(false)
26
- expect(stats.hasWarnings()).toBe(false)
+ if (stats.hasErrors()) {
+ throw new Error(stats.toString('errors-only'))
27
+ }
28
0 commit comments