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

Only count calls to snapshot not text #22

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

For example it thinks there are two snapshots in the following code because it finds text "snapshot" twice

it('works', () => {
  // snapshot comparison
  snapshot(42)
})