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

Use callback function name if possible #23

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

If the name could not be determined, but callback function has a name, use the callback's name

const name = 'foo'
it(name, function testFoo() {
  snapshot('foo')
})