denoland / std

The Deno Standard Library
https://jsr.io/@std
MIT License
3.21k stars 621 forks source link

Testing: add Deno.TestContext as a parameter to beforeEach and afterEach #6189

Open Mr-Duda opened 6 days ago

Mr-Duda commented 6 days ago

I have some shared preparation before each test and it requires the test name and test file. This is available in the Deno.TestContext object passed to each test.

It would be very helpful if this object would also be available in the beforeEach and afterEach hooks.