Skip to content
forked from japa/expect

Assertion package built on top of Jest expect

License

Notifications You must be signed in to change notification settings

JuliensForks/expect

 
 

Repository files navigation

@japa/expect

Assertion library built on top of jest-expect

github-actions-image npm-image license-image typescript-image

An assertion library built on top of jest-expect.

Installation

Install the package from the npm registry as follows:

npm i @japa/expect

yarn add @japa/expect

Usage

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)
})

About

Assertion package built on top of Jest expect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.4%
  • Shell 1.6%