comparadise-utils 0.0.8 → 0.0.9

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.js CHANGED
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setupVisualTests = void 0;
4
4
  const screenshots_1 = require("./screenshots");
5
- const on_after_screenshot_1 = require("./on-after-screenshot");
6
5
  function setupVisualTests(on, config) {
7
6
  on('task', {
8
7
  baseExists: screenshots_1.baseExists,
@@ -12,7 +11,6 @@ function setupVisualTests(on, config) {
12
11
  return null;
13
12
  }
14
13
  });
15
- on('after:screenshot', on_after_screenshot_1.onAfterScreenshot);
16
14
  return config;
17
15
  }
18
16
  exports.setupVisualTests = setupVisualTests;
@@ -30,10 +30,7 @@ function matchScreenshot(subject, args) {
30
30
  const { rawName, options = {} } = args || {};
31
31
  forceFont();
32
32
  verifyImages();
33
- const { screenshotsFolder } = Cypress.config();
34
- if (!screenshotsFolder) {
35
- throw new Error('No screenshots folder found!');
36
- }
33
+ const screenshotsFolder = 'cypress/screenshots';
37
34
  const testPath = Cypress.spec.relative;
38
35
  const lastSlashIndex = testPath.lastIndexOf('/');
39
36
  const testPathWithoutFileName = testPath.substring(0, lastSlashIndex);
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": "0.0.8"
32
+ "version": "0.0.9"
33
33
  }