Commit 2d6b83ab authored by Haoqun Jiang's avatar Haoqun Jiang

test: should show error details

parent b74d21b8
...@@ -88,7 +88,7 @@ function bundle (options, cb, wontThrowError) { ...@@ -88,7 +88,7 @@ function bundle (options, cb, wontThrowError) {
expect(err).toBeNull() expect(err).toBeNull()
if (errors && errors.length) { if (errors && errors.length) {
errors.forEach(error => { errors.forEach(error => {
console.error(error.message) console.error(error)
}) })
} }
expect(errors).toHaveLength(0) expect(errors).toHaveLength(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment