comparadise-utils 1.5.2 → 1.5.3

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
@@ -1,9 +1,2 @@
1
1
  /// <reference types="cypress" />
2
2
  export declare function setupVisualTests(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions): Cypress.PluginConfigOptions;
3
- declare global {
4
- namespace Cypress {
5
- interface Chainable {
6
- matchScreenshot(args?: MatchScreenshotArgs): Chainable;
7
- }
8
- }
9
- }
@@ -1,15 +1,12 @@
1
1
  /// <reference types="cypress" />
2
- declare const PREFIX_DIFFERENTIATOR = "___";
3
- declare const SUFFIX_TEST_IDENTIFIER = ".spec.ts";
4
- declare const SCREENSHOTS_FOLDER_NAME = "screenshots";
5
- declare function forceFont(): false | HTMLStyleElement;
6
- declare function getTestFolderPathFromScripts(rawName?: string): {
7
- name: string;
8
- screenshotsFolder: string;
9
- };
10
- declare function verifyImages(): void;
11
- type MatchScreenshotArgs = {
2
+ export type MatchScreenshotArgs = {
12
3
  rawName?: string;
13
4
  options?: Partial<Cypress.ScreenshotOptions>;
14
5
  };
15
- declare function matchScreenshot(subject: Cypress.JQueryWithSelector | Window | Document | void, args?: MatchScreenshotArgs): void;
6
+ declare global {
7
+ namespace Cypress {
8
+ interface Chainable {
9
+ matchScreenshot(args?: MatchScreenshotArgs): Chainable;
10
+ }
11
+ }
12
+ }
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
2
3
  const PREFIX_DIFFERENTIATOR = '___';
3
4
  const SUFFIX_TEST_IDENTIFIER = '.spec.ts';
4
5
  const SCREENSHOTS_FOLDER_NAME = 'screenshots';
package/package.json CHANGED
@@ -29,5 +29,5 @@
29
29
  "build": "tsc",
30
30
  "postbuild": "echo \"require('./dist/match-screenshot');\" > commands.js"
31
31
  },
32
- "version": "1.5.2"
32
+ "version": "1.5.3"
33
33
  }