Releases: test-bdd/test-js
Fix Path Read
Fix Directory Read
Ignore paths that do not have file extensions. Paths without file extensions were assumed to be directories. This resulted into an error when a path to a file without a file extension was assumed to be a directory path.
The test runner documentation contained unnecessary complexity. The same results could be achieved by using test runners lower in the hierarchy. For example, instead of using PackageRunner
in modules, you could use ModuleRunner
. This also makes the runners more appropriate for the context.
Test Runner Types
Add test Runner types to API. The types PackageRunner
, ModuleRunner
, SuiteRunner
, and StepRunner
were added.
Test Runner
Add a test runner. The runner is used to run tests in a directory or a single file.
Fix Test Count
This release fixes the count issue. The expectations in a particular test were counted instead of the tests immediately below it. This gave a higher count that was correct. For example, if there were 2 steps in suite, where the first step had 1 expectation and the second one had 2, the correct count for the suite would be 2. But, the count was coming out as 3.
Fix Asynchronous behavior
This release fixes asynchronous behavior. Asynchronous tests were not running correctly. This is because some functions did not return promises when they were supposed to.
Wrap JSDoc Code in Code Blocks
Wrap JSDoc code in code blocks so that they appear as code blocks in Deno documentation.
Change Library Name
This release changes the name of the library in documentation. The name is changed from test-js
to testjs
. This was done because the name test-js
was not available in Deno registry.
First Release
This release comes with the five levels of test organisation - expect
, it
, describe
, mod
, and pack
. It also comes with the following assertions:
not
toAlmostEqual
toBe
toBeGreaterThan
toBeGreaterThanOrEqual
toBeInstanceOf
toBeLessThan
toBeLessThanOrEqual
toContainElement
toContainString
toEqual
toExist
toMatch
toMatchObject
toReject
toThrow