-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
Change the Jest environment so in case of hook failure, the error is output to STDERR.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,9 @@ class JestEnvironmentE2E extends JestEnvironmentNode { | |
break; | ||
|
||
case 'hook_failure': | ||
console.error( event.error ); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
worldomonation
Author
Contributor
|
||
this.testFailed = true; | ||
break; | ||
case 'test_fn_failure': | ||
this.global.__CURRENT_TEST_FAILED__ = true; | ||
this.testFailed = true; | ||
|
We don't need it to log it for
test_fn_failure
?Also I think we need
__CURRENT_TEST_FAILED__
here as well, otherwise a hook failure won't trigger a screenshot