@types/jest-image-snapshot 6.2.0 → 6.2.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.
File without changes
@@ -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: Sun, 06 Aug 2023 10:32:40 GMT
11
+ * Last updated: Fri, 15 Sep 2023 20:36:37 GMT
12
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
 
@@ -9,8 +9,8 @@
9
9
 
10
10
  /// <reference types="jest" />
11
11
 
12
- import { PixelmatchOptions } from 'pixelmatch';
13
- import { Options as SSIMOptions } from 'ssim.js';
12
+ import { PixelmatchOptions } from "pixelmatch";
13
+ import { Options as SSIMOptions } from "ssim.js";
14
14
 
15
15
  export interface MatchImageSnapshotOptions {
16
16
  /**
@@ -27,7 +27,7 @@ export interface MatchImageSnapshotOptions {
27
27
  * `pixelmatch` does a pixel by pixel comparison, whereas `ssim` does a structural similarity comparison.
28
28
  * @default 'pixelmatch'
29
29
  */
30
- comparisonMethod?: 'pixelmatch' | 'ssim' | undefined;
30
+ comparisonMethod?: "pixelmatch" | "ssim" | undefined;
31
31
  /**
32
32
  * Custom snapshots directory.
33
33
  * Absolute path of a directory to keep the snapshot in.
@@ -59,18 +59,18 @@ export interface MatchImageSnapshotOptions {
59
59
  */
60
60
  customSnapshotIdentifier?:
61
61
  | ((parameters: {
62
- testPath: string;
63
- currentTestName: string;
64
- counter: number;
65
- defaultIdentifier: string;
66
- }) => string)
62
+ testPath: string;
63
+ currentTestName: string;
64
+ counter: number;
65
+ defaultIdentifier: string;
66
+ }) => string)
67
67
  | string
68
68
  | undefined;
69
69
  /**
70
70
  * Changes diff image layout direction.
71
71
  * @default 'horizontal'
72
72
  */
73
- diffDirection?: 'horizontal' | 'vertical' | undefined;
73
+ diffDirection?: "horizontal" | "vertical" | undefined;
74
74
  /**
75
75
  * Either only include the difference between the baseline and the received image in the diff image, or include
76
76
  * the 3 images (following the direction set by `diffDirection`).
@@ -105,7 +105,7 @@ export interface MatchImageSnapshotOptions {
105
105
  * Sets the type of threshold that would trigger a failure.
106
106
  * @default 'pixel'.
107
107
  */
108
- failureThresholdType?: 'pixel' | 'percent' | undefined;
108
+ failureThresholdType?: "pixel" | "percent" | undefined;
109
109
  /**
110
110
  * Updates a snapshot even if it passed the threshold against the existing one.
111
111
  * @default false.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/jest-image-snapshot",
3
- "version": "6.2.0",
3
+ "version": "6.2.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,6 @@
39
39
  "@types/pixelmatch": "*",
40
40
  "ssim.js": "^3.1.1"
41
41
  },
42
- "typesPublisherContentHash": "99994f9ae0234e9d94fcac1d3513bdf1ff6207ad08d8808ddeac0eb41c058ba7",
43
- "typeScriptVersion": "4.3"
42
+ "typesPublisherContentHash": "72ef1b6e17c6e3d5f353681c9e38cbf9341ea6f5e07db39d96e4c98fbc080298",
43
+ "typeScriptVersion": "4.5"
44
44
  }