0.4.0 • Published 8 years ago
@scotia/jester v0.4.0
jester
Jest helpers to reduce boilerplate.
install
npm install @scotia/jesterusage
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:watchBuild
npm run build