Upgrading ava 0.6 to 0.7
Breaking0.6.1 → 0.7.0Breaking2New1Changed2Fixed1
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- Regular tests no longer need to be told when they finish. Tests that use callbacks must now be written with a special callback version of the test function.
- Setting an expected assertion count no longer finishes the test for you. Callback tests must now signal completion themselves.
Must act 2 items need code or config changes
Adds is-observable ^0.1.0, object-assign ^4.0.1, time-require ^0.1.2.
Installs 411 packages in all (was 402).
What you must change
Breaking2
Makes test() synchronous by default; callback-style tests must use the new test.cb() and t.end() is no longer needed in synchronous tests.
test()test.cb()t.end()Stops t.plan() from auto-ending tests; callback-style tests must now call t.end() explicitly, and t.end() only works in test.cb().
t.plan()t.end()test.cb()