3.0.4 • Published 6 months ago
@japa/expect v3.0.4
@japa/expect
Assertion library built on top of jest-expect
An assertion library built on top of jest-expect.
Complete API documentation
Installation
Install the package from the npm registry as follows:
npm i @japa/expectyarn add @japa/expectUsage
You can use the assertion package with the @japa/runner as follows.
import { expect } from '@japa/expect'
import { configure } from '@japa/runner'
configure({
plugins: [expect()]
})Once done, you will be able to access the expect property on the test context.
test('test title', ({ expect }) => {
expect(100).toBeWithinRange(90, 110)
})