Skip to content

Version 1.4.0

Compare
Choose a tag to compare
@Gigabyte5671 Gigabyte5671 released this 04 May 00:00
· 65 commits to main since this release
  • 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.