forked from karma-runner/karma-jasmine
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Propagate errors thrown in afterAll blocks
If an error is thrown in an afterAll block, it needs to be handled specially since the error isn't attached to a specific spec. This change won't fail any specific test, but will cause a general failure which will still cause overall run failure. Closes karma-runner#161
- Loading branch information
1 parent
fe23ac7
commit f3fa264
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this one can obscure some error informations for example i got this in app with over 900+ test and couldn't find source of issue till i logged the whole
result
object:each step stack was undefined but in
result.fullName
i found some info that actualy helped me to localize issuehere is example console.log of result that was casing above obfuscated error