@types/jest-image-snapshot 6.2.2 → 6.3.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,7 +8,7 @@ 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: Wed,
|
|
11
|
+
* Last updated: Wed, 29 Nov 2023 19:35:57 GMT
|
|
12
12
|
* Dependencies: [@types/jest](https://npmjs.com/package/@types/jest), [@types/pixelmatch](https://npmjs.com/package/@types/pixelmatch), [ssim.js](https://npmjs.com/package/ssim.js)
|
|
13
13
|
|
|
14
14
|
# Credits
|
jest-image-snapshot/index.d.ts
CHANGED
|
@@ -68,6 +68,13 @@ export interface MatchImageSnapshotOptions {
|
|
|
68
68
|
* @default false
|
|
69
69
|
*/
|
|
70
70
|
onlyDiff?: boolean | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* This needs to be set to a existing file, like `require.resolve('./runtimeHooksPath.cjs')`.
|
|
73
|
+
* This file can expose a few hooks:
|
|
74
|
+
* - `onBeforeWriteToDisc`: before saving any image to the disc, this function will be called (can be used to write EXIF data to images for instance)
|
|
75
|
+
* - `onBeforeWriteToDisc: (arguments: { buffer: Buffer; destination: string; testPath: string; currentTestName: string }) => Buffer`
|
|
76
|
+
*/
|
|
77
|
+
runtimeHooksPath?: string | undefined;
|
|
71
78
|
/**
|
|
72
79
|
* Will output base64 string of a diff image to console in case of failed tests (in addition to creating a diff image).
|
|
73
80
|
* 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": "6.
|
|
3
|
+
"version": "6.3.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",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"@types/pixelmatch": "*",
|
|
40
40
|
"ssim.js": "^3.1.1"
|
|
41
41
|
},
|
|
42
|
-
"typesPublisherContentHash": "
|
|
43
|
-
"typeScriptVersion": "4.
|
|
42
|
+
"typesPublisherContentHash": "ce1e29892c3985f455e82dd214ef88c1735860815b950a4564ff31f107e2fe4e",
|
|
43
|
+
"typeScriptVersion": "4.6"
|
|
44
44
|
}
|