bahmutov / snap-shot

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

How to handle tests with dynamic names? #9

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

For example test like this one

const testName = 'variable test name (value 30)'
it(testName, () => {
  snapshot(30)
})

Maybe use serialized test function instead of the name?