๐คทโโ๏ธ Expectations
What to expect(), when you're expecting!
There are a set of comparison functions defined in the types/as-pect.d.ts
types definition. These comparison functions allow you to inspect object and memory state.
Expectations can be created like this:
Expectations can be negated like this:
Calling the expect<T>(value: T)
function outside of the following functions will result in unexpected behavior:
beforeEach()
afterEach()
beforeAll()
afterAll()
test()
it()
throws()
itThrows()
If this happens, the entire test suite will fail before it runs in the CLI, and the error description will be reported to the console.
Last updated