Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/albertfdp/unexpected-jest-snapshot

Plugin for unexpected to assert jest snapshots
https://github.com/albertfdp/unexpected-jest-snapshot

jest snapshot snapshot-testing unexpected

Last synced: 9 days ago
JSON representation

Plugin for unexpected to assert jest snapshots

Awesome Lists containing this project

README

        

# unexpected-jest-snapshot

This module extends the [unexpected](https://github.com/unexpectedjs/unexpected)
assertion library with integration with [jest](https://facebook.github.io/jest/)
snapshot testing.

[![NPM version](https://badge.fury.io/js/unexpected-jest-snapshot.svg)](http://badge.fury.io/js/unexpected-jest-snapshot)
[![Build Status](https://travis-ci.org/albertfdp/unexpected-jest-snapshot.svg?branch=master)](https://travis-ci.org/albertfdp/unexpected-jest-snapshot)

![unexpected-jocker](http://i.giphy.com/qu7SYku81wy7S.gif)

## How to use it

### Node

Install it with npm:

```
$ npm install unexpected jest unexpected-jest-snapshot
```

Then:

```javascript
const expect = require('unexpected').clone();
expect.use(require('unexpected-jest-snapshot'));
```