@scotia/jester

0.4.0 • Public • Published

jester

Jest helpers to reduce boilerplate.

install

npm install @scotia/jester

usage

Provides methods that create and run tests for to compare json objects.

api

#runSnapshotTests(Object : {})

Accepts any object and runs them through a simple snapshot test.

import jester from '@scotia/jester';
describe('object snapshot', () => {
  jester.runSnapshotTests({
    one: { two: 'three' },
    four: { five: { six: 'seven' } }
  });
});

development

Run tests

npm run test
npm run test:watch

Build

npm run build

Readme

Keywords

Package Sidebar

Install

npm i @scotia/jester

Weekly Downloads

0

Version

0.4.0

License

MPL-2.0

Last publish

Collaborators

  • tshen8
  • randysingh
  • aali
  • reyre
  • mdclements