mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add dumpDiffToConsole to MatchImageSnapshotOptions (#43738)
* Add dumpDiffToConsole to MatchImageSnapshotOptions * Update jest-image-snapshot version reference * Remove patch version
This commit is contained in:
parent
f410f756a0
commit
bf2417889d
7
types/jest-image-snapshot/index.d.ts
vendored
7
types/jest-image-snapshot/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for jest-image-snapshot 2.11
|
||||
// Type definitions for jest-image-snapshot 2.12
|
||||
// Project: https://github.com/americanexpress/jest-image-snapshot#readme
|
||||
// Definitions by: Janeene Beeforth <https://github.com/dawnmist>
|
||||
// erbridge <https://github.com/erbridge>
|
||||
@ -48,6 +48,11 @@ export interface MatchImageSnapshotOptions {
|
||||
* Changes diff image layout direction, default is horizontal.
|
||||
*/
|
||||
diffDirection?: 'horizontal' | 'vertical';
|
||||
/**
|
||||
* Will output base64 string of a diff image to console in case of failed tests (in addition to creating a diff image).
|
||||
* This string can be copy-pasted to a browser address string to preview the diff for a failed test.
|
||||
*/
|
||||
dumpDiffToConsole?: boolean;
|
||||
/**
|
||||
* Removes coloring from the console output, useful if storing the results to a file.
|
||||
* Defaults to false.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user