snap-shot
snap-shot copied to clipboard
Jest-like snapshot feature for the rest of us, works magically by finding the right caller function
I have this usecase where I would like to store my snapshot(happens automatically). The next time I run the test I would like it to use that snapshot (which is...
See [src/async-spec.js](src/async-spec.js) test "promise to snapshot" ```js // async-spec.js const snapshot = require('.') it.only('promise to snapshot (does nothing!)', () => { // straight into snapshot comparison does not work return...
Between this module and `schema-shot` https://github.com/bahmutov/schema-shot
There is a difference between callsites, stack exception and `console.trace` ``` // stack-site [ { functionName: 'stackSites', filename: '/node_modules/stack-sites/src/index.js', line: 45, column: 13 }, { functionName: 'snapshot', filename: '/node_modules/snap-shot/src/index.js', line:...
Does not find the right source location if the `snapshot` was used in composition, for example `src/format-spec.js` ```js const compose = (f, g) => x => f(g(x)) const upperCase =...