@percy/core 1.0.3 → 1.0.6

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/snapshot.js CHANGED
@@ -151,7 +151,7 @@ export function validateSnapshotOptions(options) {
151
151
  for (let snap of snaps) validURL(typeof snap === 'string' ? snap : snap.url, baseUrl); // add back snapshots before validating and scrubbing; function snapshots are validated later
152
152
 
153
153
 
154
- if (snapshots) migrated.snapshots = typeof snapshots === 'function' ? [] : snapshots;
154
+ if (snapshots) migrated.snapshots = typeof snapshots === 'function' ? [] : snapshots;else if (!isSnapshot && options.snapshots) migrated.snapshots = [];
155
155
  let errors = PercyConfig.validate(migrated, schema);
156
156
 
157
157
  if (errors) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,7 +27,8 @@
27
27
  "./utils": "./dist/utils.js",
28
28
  "./config": "./dist/config.js",
29
29
  "./install": "./dist/install.js",
30
- "./test/helpers": "./test/helpers/index.js"
30
+ "./test/helpers": "./test/helpers/index.js",
31
+ "./test/helpers/server": "./test/helpers/server.js"
31
32
  },
32
33
  "scripts": {
33
34
  "build": "node ../../scripts/build",
@@ -38,10 +39,10 @@
38
39
  "test:types": "tsd"
39
40
  },
40
41
  "dependencies": {
41
- "@percy/client": "1.0.3",
42
- "@percy/config": "1.0.3",
43
- "@percy/dom": "1.0.3",
44
- "@percy/logger": "1.0.3",
42
+ "@percy/client": "1.0.6",
43
+ "@percy/config": "1.0.6",
44
+ "@percy/dom": "1.0.6",
45
+ "@percy/logger": "1.0.6",
45
46
  "content-disposition": "^0.5.4",
46
47
  "cross-spawn": "^7.0.3",
47
48
  "extract-zip": "^2.0.1",
@@ -52,5 +53,5 @@
52
53
  "rimraf": "^3.0.2",
53
54
  "ws": "^8.0.0"
54
55
  },
55
- "gitHead": "a259d5cff0933711bced21a979c577e70765d318"
56
+ "gitHead": "f883f713ac513635245301622392870ba4018706"
56
57
  }
@@ -22,10 +22,10 @@ export async function setupTest({
22
22
  loggerTTY,
23
23
  apiDelay
24
24
  } = {}) {
25
- await logger.mock({ isTTY: loggerTTY });
26
25
  await api.mock({ delay: apiDelay });
27
- resetPercyConfig(resetConfig);
28
- mockfs(filesystem);
26
+ await logger.mock({ isTTY: loggerTTY });
27
+ await resetPercyConfig(resetConfig);
28
+ await mockfs(filesystem);
29
29
  }
30
30
 
31
31
  export * from '@percy/client/test/helpers';
@@ -1,4 +1,4 @@
1
- // aliased to src for coverage during tests without needing to compile this file
1
+ // aliased to src during tests
2
2
  import Server from '../../dist/server.js';
3
3
 
4
4
  export function createTestServer({ default: defaultReply, ...replies }, port = 8000) {