nicolo-ribaudo / jest-light-runner

A Jest runner that runs tests directly in bare Node.js, without virtualizing the environment.
MIT License
232 stars 24 forks source link

`afterEach` and `afterAll` should be run after test blocks #43

Closed iainjreid closed 2 years ago

iainjreid commented 2 years ago

Currently all of the hooks registered for a test suite are run before the test itself is executed. The afterEach and afterAll hooks should delayed until the test is completed.

PR with a fix to follow! 👍

nicolo-ribaudo commented 2 years ago

Fixed by #44