Attributes
Very Popular
Includes Deno configuration
Repository
Current version released
3 years ago
Versions
- v1.0.0-beta.82Latest
- v1.0.0-beta.81
- v1.0.0-beta.80
- v1.0.0-beta.79
- v1.0.0-beta.78
- v1.0.0-beta.77
- v1.0.0-beta.76
- v1.0.0-beta.75
- v1.0.0-beta.74
- v1.0.0-beta.73
- v1.0.0-beta.72
- v1.0.0-beta.71
- v1.0.0-beta.70
- v1.0.0-beta.69
- v1.0.0-beta.68
- v1.0.0-beta.67
- v1.0.0-beta.66
- v1.0.0-beta.65
- v1.0.0-beta.64
- v1.0.0-beta.63
- v1.0.0-beta.62
- v1.0.0-beta.61
- v1.0.0-beta.60
- v1.0.0-beta.59
- v1.0.0-beta.58
- v1.0.0-beta.57
- v1.0.0-beta.56
- v1.0.0-beta.55
- v1.0.0-beta.54
- v1.0.0-beta.53
- v1.0.0-beta.52
- v1.0.0-beta.51
- v1.0.0-beta.50
- v1.0.0-beta.49
- v1.0.0-beta.48
- v1.0.0-beta.47
- v1.0.0-beta.46
- v1.0.0-beta.45
- v1.0.0-beta.44
- v1.0.0-beta.43
- v1.0.0-beta.42
- v1.0.0-beta.41
- v1.0.0-beta.40
- v1.0.0-beta.39
- v1.0.0-beta.38
- v1.0.0-beta.37
- v1.0.0-beta.36
- v1.0.0-beta.35
- v1.0.0-beta.34
- v1.0.0-beta.33
- v1.0.0-beta.32
- v1.0.0-beta.31
- v1.0.0-beta.30
- v1.0.0-beta.29
- v1.0.0-beta.28
- v1.0.0-beta.27
- v1.0.0-beta.26
- v1.0.0-beta.25
- v1.0.0-beta.24
- v1.0.0-beta.23
- v1.0.0-beta.22
- v1.0.0-beta.21
- v1.0.0-beta.20
- v1.0.0-beta.19
- v1.0.0-beta.18
- v1.0.0-beta.17
- v1.0.0-beta.16
- v1.0.0-beta.15
- v1.0.0-beta.14
- v1.0.0-beta.13
- v1.0.0-beta.12
- v1.0.0-beta.11
- v1.0.0-beta.10
- v1.0.0-beta.9
- v1.0.0-beta.8
- v1.0.0-beta.7
- v1.0.0-beta.6
- v1.0.0-beta.5
- v1.0.0-beta.4
- v1.0.0-beta.3
- v1.0.0-beta.2
- v1.0.0-beta.1
Unitest
Deno-first universal unit testing framework
jest like testing easy
:construction: This is still beta
expect
import { expect } from "https://deno.land/x/unitest@{VERSION}/mod.ts";
expect("").toBe("");
Custom matcher
It provides custom matcher interface.
You can add custom matcher easy. The type is automatically extended.
import { defineExpect, jestMatcher } from "https://deno.land/x/unitest@{VERSION}/mod.ts";
const expect = defineExpect({
...jestMatcher
toBe100: (actual) => {
if (actual === 100) return { pass: true };
return {
pass: false,
message,
};
},
});
expect(1000).not.toBe100();
TODO
- Implement expecter and jest default matcher
- toBe
- toBeDefined
- toBeFalsy
- toBeInstanceOf
- toBeNaN
- toBeNull
- toBeTruthy
- toBeUndefined
- toEqual
- toHaveLength
- toBeGreaterThan
- toBeGreaterThanOrEqual
- toBeLessThan
- toBeLessThanOrEqual
- toBeCloseTo
- toHaveBeenCalled
- toHaveBeenCalled
- toHaveBeenCalledTimes
- toHaveBeenCalledWith
- toHaveBeenLastCalledWith
- toHaveBeenNthCalledWith
- toHaveReturned
- toHaveReturnedTimes
- toHaveReturnedWith
- toHaveLastReturnedWith
- toHaveNthReturnedWith
- toHaveProperty
- toContain
- toContainEqual
- toMatch
- toMatchObject
- toMatchSnapshot
- toMatchInlineSnapshot
- toStrictEqual
- toThrow
- toThrowErrorMatchingSnapshot
- toThrowErrorMatchingInlineSnapshot
- Implement interface of custom matcher
- Implement
it
suite - Implement
describe
suite