comparadise-utils 1.25.2 → 1.26.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.
- package/dist/index.d.ts +1 -0
- package/dist/match-screenshot.d.ts +8 -1
- package/dist/match-screenshot.js +10 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,13 @@ import pixelmatch from 'pixelmatch';
|
|
|
2
2
|
|
|
3
3
|
type PixelMatchOptions = Parameters<typeof pixelmatch>[5];
|
|
4
4
|
|
|
5
|
+
declare const PREFIX_DIFFERENTIATOR = "___";
|
|
6
|
+
declare function forceFont(): false | HTMLStyleElement;
|
|
7
|
+
declare function getTestFolderPathFromScripts(rawName?: string): {
|
|
8
|
+
name: string;
|
|
9
|
+
screenshotsFolder: string;
|
|
10
|
+
};
|
|
11
|
+
declare function verifyImages(): void;
|
|
5
12
|
type MatchScreenshotArgs = {
|
|
6
13
|
rawName?: string;
|
|
7
14
|
options?: Partial<Cypress.ScreenshotOptions> & {
|
|
@@ -24,4 +31,4 @@ declare global {
|
|
|
24
31
|
}
|
|
25
32
|
}
|
|
26
33
|
|
|
27
|
-
export { type MatchScreenshotArgs, matchScreenshot };
|
|
34
|
+
export { type MatchScreenshotArgs, PREFIX_DIFFERENTIATOR, forceFont, getTestFolderPathFromScripts, matchScreenshot, verifyImages };
|
package/dist/match-screenshot.js
CHANGED
|
@@ -20,7 +20,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// match-screenshot.ts
|
|
21
21
|
var match_screenshot_exports = {};
|
|
22
22
|
__export(match_screenshot_exports, {
|
|
23
|
-
|
|
23
|
+
PREFIX_DIFFERENTIATOR: () => PREFIX_DIFFERENTIATOR,
|
|
24
|
+
forceFont: () => forceFont,
|
|
25
|
+
getTestFolderPathFromScripts: () => getTestFolderPathFromScripts,
|
|
26
|
+
matchScreenshot: () => matchScreenshot,
|
|
27
|
+
verifyImages: () => verifyImages
|
|
24
28
|
});
|
|
25
29
|
module.exports = __toCommonJS(match_screenshot_exports);
|
|
26
30
|
var PREFIX_DIFFERENTIATOR = "___";
|
|
@@ -121,5 +125,9 @@ Cypress.Commands.add(
|
|
|
121
125
|
);
|
|
122
126
|
// Annotate the CommonJS export names for ESM import in node:
|
|
123
127
|
0 && (module.exports = {
|
|
124
|
-
|
|
128
|
+
PREFIX_DIFFERENTIATOR,
|
|
129
|
+
forceFont,
|
|
130
|
+
getTestFolderPathFromScripts,
|
|
131
|
+
matchScreenshot,
|
|
132
|
+
verifyImages
|
|
125
133
|
});
|