@types/jest-image-snapshot 6.2.3 → 6.4.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.
@@ -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: Tue, 07 Nov 2023 03:09:37 GMT
11
+ * Last updated: Tue, 12 Dec 2023 15:35:53 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
@@ -9,6 +9,11 @@ export interface MatchImageSnapshotOptions {
9
9
  * @default false
10
10
  */
11
11
  allowSizeMismatch?: boolean | undefined;
12
+ /**
13
+ * Sets the max number of bytes for stdout/stderr when running diff-snapshot in a child process.
14
+ * @default 10 * 1024 * 1024 (10,485,760)
15
+ */
16
+ maxChildProcessBufferSizeInBytes?: number | undefined;
12
17
  /**
13
18
  * Custom config passed to 'pixelmatch' or 'ssim'
14
19
  */
@@ -68,6 +73,13 @@ export interface MatchImageSnapshotOptions {
68
73
  * @default false
69
74
  */
70
75
  onlyDiff?: boolean | undefined;
76
+ /**
77
+ * This needs to be set to a existing file, like `require.resolve('./runtimeHooksPath.cjs')`.
78
+ * This file can expose a few hooks:
79
+ * - `onBeforeWriteToDisc`: before saving any image to the disc, this function will be called (can be used to write EXIF data to images for instance)
80
+ * - `onBeforeWriteToDisc: (arguments: { buffer: Buffer; destination: string; testPath: string; currentTestName: string }) => Buffer`
81
+ */
82
+ runtimeHooksPath?: string | undefined;
71
83
  /**
72
84
  * Will output base64 string of a diff image to console in case of failed tests (in addition to creating a diff image).
73
85
  * This string can be copy-pasted to a browser address string to preview the diff for a failed test.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/jest-image-snapshot",
3
- "version": "6.2.3",
3
+ "version": "6.4.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": "a6ee48722527e8ee45444867061eb8022ac543771dea5a649c3c02f5b7a27644",
43
- "typeScriptVersion": "4.5"
42
+ "typesPublisherContentHash": "3a0a05d55f8c572f1d44ce8ba427ce2fccf7a4f79cbe30d05bf350c7b1e68271",
43
+ "typeScriptVersion": "4.6"
44
44
  }