The buffer from the call to expect(...)
.
The configuration object provided when initializing this library
with a call to jestScreenshot
.
A MatcherResult
usable by jest.
Performs the actual check for equality of two images.
The image from the snapshot.
The image received from the expect(...)
call.
The number of the snapshot in this test.
The configuration of the call to toMatchImageSnapshot
.
A MatcherResult
with pass
and a message which can be handed to jest.
Calculates the filename for an individual image snapshot file.
Depending on the configuration the provided identifier
generator will be used
or a default identifier will be generated.
The testPath
from the jest test configuration, leading to the test file.
The currentTestName
from the jest test configuration,
the name of the current it
/describe
test.
The snapshotState
from the jest test configuration.
A string used as a filename for the current snapshot.
Calculates the absolute path to an individual image snapshot file.
The testPath
from the jest test configuration, leading to the test file.
The currentTestName
from the jest test configuration,
the name of the current it
/describe
test.
The snapshotState
from the jest test configuration.
A string with the absolute path to the current snapshot.
Checks whether the given input is a JestTestConfiguration
provided by jest.
Checks whether the given input is a SnapshotState
provided by jest.
This function is used to setup and initialize jest-screenshot.
A configuration object can be passed as the first argument.
Generated using TypeDoc
A matcher for jest with compares a PNG image to a stored snapshot. Behaves similar to
.toMatchSnapshot()
.