bahmutov / snap-shot

Jest-like snapshot feature for the rest of us, works magically by finding the right caller function
169 stars 3 forks source link

Follow same format as Jest #18

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

Snapshots for test file like sum.test.js should be saved into __snapshots__/sum.test.js.snap with format

exports[`test adds 1 + 2 to equal 3 1`] = `3`;

exports[`test concat strings 1`] = `"foo"`;
bahmutov commented 7 years ago

Jest file save utils in https://github.com/facebook/jest/blob/e4718cb0d358f9152c348f1ee279181c2903472b/packages/jest-snapshot/src/utils.js