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

Does not handle one liners #80

Open bahmutov opened 7 years ago

bahmutov commented 7 years ago

Like snapshot wrapping a promise in a single line

it('picks semantic commits', () => snapshot(formChangelog('1.0.0', 10)))
 1) form changelog from commits picks semantic commits:
     Error: Could not determine test for src/form-changelog-spec.js
      line 42 column 40
      at snapshot (node_modules/snap-shot/src/index.js:117:11)
      at Context.it (src/form-changelog-spec.js:42:40)
yapus commented 4 years ago

any chance this would be fixed anytime soon?