- On some synchronous tests, the result evaluation was being carried out before the test completed. This has been fixed.
- Micro Test-Runner is now compiled as an ES Module. Depending on your project configuration, you may no longer need to invoke the test-runner with
test.default()
.
- Micro Test-Runner can now automatically handle logging of test results with the
.logging()
method:
import test, { FailureLogSeverity } from 'micro-test-runner';
test(yourFunction) // Test `yourFunction`...
.times(3) // 3 times...
.logging('Function Name', FailureLogSeverity.WARN) // Logging the result...
.with(['Hello', 'world!']) // With these arguments...
.expect(['Hello world!']); // And expect these results.