@types/jest-image-snapshot 5.1.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
jest-image-snapshot/README.md
CHANGED
|
@@ -8,9 +8,9 @@ This package contains type definitions for jest-image-snapshot (https://github.c
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest-image-snapshot.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
12
|
-
* Dependencies: [@types/
|
|
11
|
+
* Last updated: Tue, 06 Dec 2022 19:33:11 GMT
|
|
12
|
+
* Dependencies: [@types/jest](https://npmjs.com/package/@types/jest), [@types/pixelmatch](https://npmjs.com/package/@types/pixelmatch), [@types/ssim.js](https://npmjs.com/package/@types/ssim.js)
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Janeene Beeforth](https://github.com/dawnmist), [erbridge](https://github.com/erbridge),
|
|
16
|
+
These definitions were written by [Janeene Beeforth](https://github.com/dawnmist), [erbridge](https://github.com/erbridge), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Ayc0](https://github.com/Ayc0).
|
jest-image-snapshot/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
// Type definitions for jest-image-snapshot
|
|
1
|
+
// Type definitions for jest-image-snapshot 6.1
|
|
2
2
|
// Project: https://github.com/americanexpress/jest-image-snapshot#readme
|
|
3
3
|
// Definitions by: Janeene Beeforth <https://github.com/dawnmist>
|
|
4
4
|
// erbridge <https://github.com/erbridge>
|
|
5
5
|
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
6
|
+
// Ayc0 <https://github.com/Ayc0>
|
|
6
7
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
8
|
// Minimum TypeScript Version: 4.3
|
|
8
9
|
|
|
@@ -65,6 +66,12 @@ export interface MatchImageSnapshotOptions {
|
|
|
65
66
|
* @default 'horizontal'
|
|
66
67
|
*/
|
|
67
68
|
diffDirection?: 'horizontal' | 'vertical' | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Either only include the difference between the baseline and the received image in the diff image, or include
|
|
71
|
+
* the 3 images (following the direction set by `diffDirection`).
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
onlyDiff?: boolean | undefined;
|
|
68
75
|
/**
|
|
69
76
|
* Will output base64 string of a diff image to console in case of failed tests (in addition to creating a diff image).
|
|
70
77
|
* This string can be copy-pasted to a browser address string to preview the diff for a failed test.
|
jest-image-snapshot/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jest-image-snapshot",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "TypeScript definitions for jest-image-snapshot",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest-image-snapshot",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
"name": "Piotr Błażejewicz",
|
|
20
20
|
"url": "https://github.com/peterblazejewicz",
|
|
21
21
|
"githubUsername": "peterblazejewicz"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "Ayc0",
|
|
25
|
+
"url": "https://github.com/Ayc0",
|
|
26
|
+
"githubUsername": "Ayc0"
|
|
22
27
|
}
|
|
23
28
|
],
|
|
24
29
|
"main": "",
|
|
@@ -34,6 +39,6 @@
|
|
|
34
39
|
"@types/pixelmatch": "*",
|
|
35
40
|
"ssim.js": "^3.1.1"
|
|
36
41
|
},
|
|
37
|
-
"typesPublisherContentHash": "
|
|
42
|
+
"typesPublisherContentHash": "3b3eaea9366185a27fcafe2da000bd426b4afce1760e75ecb6568c313b602d09",
|
|
38
43
|
"typeScriptVersion": "4.3"
|
|
39
44
|
}
|