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

Can it handle test names with template literals? #14

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

See if it can find the right test like this

const secondTest = 'second'
it(`handles template literals ${secondTest}`, () => {
  // this test has template literal instead of
  // primitive string
  snapshot(30)
})

Currently seems to not find the name and instead uses hash of the function callback