Function: expectIdenticalScreenshots
@mugshot/contracts.expectIdenticalScreenshots
▸ expectIdenticalScreenshots(screenshot
: Buffer, baselinePath
: string): Promise<void>
Expect that the given screenshot matches the baseline on disk.
This is sort of a basic re-implementation of Mugshot without all of its features. It only depends on its PixelDiffer module.
#
Parameters:Name | Type |
---|---|
screenshot | Buffer |
baselinePath | string |
Returns: Promise<void>
Defined in: packages/contracts/src/helpers.ts:11