mirror of https://github.com/lukechilds/ava.git
Browse Source
The child processes determine whether the test had an error based on its `error` property not being `undefined`. However they then change this property to an empty object if there was no error. The API determines whether a test had an error based on its (empty) error object having a `message` property. If a test did not have an error, its `error` property is set to `null`. This prevents errors without messages from being reported correctly. Instead set `error` to `null` in the child processes and rely on that in the API. I've added a test to validate errors without messages get reported.babel-plugin-for-integration-tests
Mark Wubben
9 years ago
5 changed files with 25 additions and 10 deletions
@ -0,0 +1,5 @@ |
|||
import test from '../../'; |
|||
|
|||
test('throw an error without a message', () => { |
|||
throw new Error(); |
|||
}); |
Loading…
Reference in new issue