Closed bafolts closed 5 years ago
The path used for hooks doesn't seem to use the path of the test which ran. This update allows hooks to be used to match snapshots. This is useful for making assertions for snapshots in an afterEach hook as follows:
afterEach
afterEach(function() { expect(somethingCollectedDuringEachTest).to.matchSnapshot(); });
Is there a way to get a pull request like this approved and merged?
Sorry for the delay.
:fireworks: thank you!
The path used for hooks doesn't seem to use the path of the test which ran. This update allows hooks to be used to match snapshots. This is useful for making assertions for snapshots in an
afterEach
hook as follows: