jest-image
Custom jest matchers to test the visual regression
Last updated a year ago by denisby .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jest-image 
SYNC missed versions from official npm registry.

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][npm] which is bundled with [node][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.

Current Tags

  • 1.0.11                                ...           latest (a year ago)

12 Versions

  • 1.0.11                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |