0.4.0 • Published 6 years ago

@scotia/jester v0.4.0

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
6 years ago

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