@types/jest-image-snapshot 6.3.0 → 6.4.1
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:
|
|
11
|
+
* Last updated: Mon, 12 Jan 2026 10:40:36 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
|
@@ -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
|
*/
|
|
@@ -129,7 +134,10 @@ export interface MatchImageSnapshotOptions {
|
|
|
129
134
|
* import { toMatchImageSnapshot } from 'jest-image-snapshot';
|
|
130
135
|
* expect.extend({ toMatchImageSnapshot });
|
|
131
136
|
*/
|
|
132
|
-
export function toMatchImageSnapshot(
|
|
137
|
+
export function toMatchImageSnapshot(
|
|
138
|
+
received: Buffer,
|
|
139
|
+
options?: MatchImageSnapshotOptions,
|
|
140
|
+
): { message(): string; pass: boolean };
|
|
133
141
|
|
|
134
142
|
/**
|
|
135
143
|
* Configurable function that can be passed to jest's expect.extend.
|
|
@@ -140,7 +148,7 @@ export function toMatchImageSnapshot(options?: MatchImageSnapshotOptions): { mes
|
|
|
140
148
|
*/
|
|
141
149
|
export function configureToMatchImageSnapshot(
|
|
142
150
|
options: MatchImageSnapshotOptions,
|
|
143
|
-
): () => { message(): string; pass: boolean };
|
|
151
|
+
): (received: Buffer, options?: MatchImageSnapshotOptions) => { message(): string; pass: boolean };
|
|
144
152
|
|
|
145
153
|
/**
|
|
146
154
|
* Mutates original state with new state
|
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.4.1",
|
|
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,7 @@
|
|
|
39
39
|
"@types/pixelmatch": "*",
|
|
40
40
|
"ssim.js": "^3.1.1"
|
|
41
41
|
},
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"peerDependencies": {},
|
|
43
|
+
"typesPublisherContentHash": "41f1a0343aee41d5cfbcee9d1003e91e318724e55cec09311ff9d3ae37a078c5",
|
|
44
|
+
"typeScriptVersion": "5.2"
|
|
44
45
|
}
|