snap-shot
snap-shot copied to clipboard
Jest-like snapshot feature for the rest of us, works magically by finding the right caller function
Like snapshot wrapping a promise in a single line ```js it('picks semantic commits', () => snapshot(formChangelog('1.0.0', 10))) ``` ```text 1) form changelog from commits picks semantic commits: Error: Could not...
Hey! I love what you are doing here. Did you know that the jest-snapshot package is standalone and can be used to use snapshots outside of Jest? I'd like to...
Should remove obsolete snapshots, which are left dangling after renaming tests
I have tried following the steps outlined in various guides here, the main difference being that I am using Mocha and JSDOM instead of Jest. When running my tests I...
I don't know if its something for this repo, but I am using real browsers, because tests are partially dom related and need to be tested in all the browsers....
Like `https://github.com/staltz/html-looks-like` to compare expected (snapshot) and actual value. Maybe check if the function is binary to tell apart from data-driven testing ```js const isPrime = n => ... snapshot(isPrime,...
I used snapshot within a sazerac assertion like this: ``` import todos from './todos' import snapshot from 'snap-shot' import { test, given } from 'sazerac' test(todos, () => { given([],...
Otherwise can shorten some values (in this case arrays of two numbers) ``` saving snapshot "checks behavior of binary function add 1" for file src/data-driven-spec.js { name: 'add', behavior: [...