NimaSoroush / differencify

Differencify is a library for visual regression testing
MIT License
634 stars 46 forks source link

Allow name to be provided to `toMatchSnapshot` #92

Open cmcculloh-kr opened 6 years ago

cmcculloh-kr commented 6 years ago

Allows user to provide custom name for their screenshots and snapshots:

            .screenshot({ path: settings.imageSnapshotPath + 'admin.0000.png'})
            .toMatchSnapshot({ name: 'admin.0000' })
NimaSoroush commented 6 years ago

@cormacmccarthy , Thanks for the PR. Can you add an example to API.md page and an integration test. It will help other people to understand the usecase better