v0.4.0
Breaking
-
Remove immutability protection on
context
object (#39, #58): 3d3076dPreviously,
uvu
only allowed suites'context
to be modified within suite hooks. It would then pass in a read-only copy into the test handlers. The idea was to help ensure that the tests weren't unexpectedly relying on mutatedcontext
values between tests. However, in practice, this caused more problems than it prevented (#39, #58).So now,
uvu
passes around the originalcontext
object, allowing your hooks and tests to read/write/whatever tocontext
. The warning has also been removed. You're in full control~!
Features
- Write the current suite and test names into
context
object (#55): 28d12e9
Allows your hooks and/or tests to be made aware of which suite+test combination was executed.
Everycontext
object will be given__suite__
and__test__
keys, which will be the respective name (string) values.
Thank you @maraisr~!