1.0.11 • Published 5 years ago

jest-image v1.0.11

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

jest-image 🌇 vs 🌆

Custom jest matchers to test the visual regression

CircleCI License: MIT PRs Welcome

GitHub followers GitHub stars GitHub stars

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

npm install --save-dev jest-image

or

yarn add --D jest-image

Usage

Import jest-image/extend-expect once (for instance in your tests setup file) and you're good to go:

import 'jest-image/extend-expect'

Alternatively, you can selectively import only the matchers you intend to use, and extend jest's expect yourself:

import { toMatchImageBuffer } from 'jest-image'

expect.extend({ toMatchImageBuffer })

toMatchImageBuffer

toMatchImageBuffer(buffer: Buffer)

Fastest way to compare images. It takes less than 1ms to get a result.

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago