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 CHANGED
@@ -6,6 +6,7 @@ declare global {
6
6
  namespace Cypress {
7
7
  interface Chainable {
8
8
  matchScreenshot(args?: MatchScreenshotArgs): Chainable;
9
+ createBaseImage(args?: MatchScreenshotArgs): Chainable;
9
10
  }
10
11
  }
11
12
  }
@@ -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 };
@@ -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
- matchScreenshot: () => matchScreenshot
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
- matchScreenshot
128
+ PREFIX_DIFFERENTIATOR,
129
+ forceFont,
130
+ getTestFolderPathFromScripts,
131
+ matchScreenshot,
132
+ verifyImages
125
133
  });
package/package.json CHANGED
@@ -28,7 +28,7 @@
28
28
  "peerDependencies": {
29
29
  "cypress": ">=12"
30
30
  },
31
- "version": "1.25.2",
31
+ "version": "1.26.0",
32
32
  "scripts": {
33
33
  "build": "tsup",
34
34
  "postbuild": "echo \"require('./dist/match-screenshot');\" > commands.js",