@scotia/jester
v0.4.0
Published
Jest Helpers provides some extra functionality to simplify writing your unit tests.
Downloads
5
Readme
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