@percy/core 1.0.2 → 1.0.5
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 +1 -1
- package/package.json +8 -7
- package/test/helpers/index.js +3 -3
- package/test/helpers/server.js +1 -1
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
|
+
"version": "1.0.5",
|
|
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.
|
|
42
|
-
"@percy/config": "1.0.
|
|
43
|
-
"@percy/dom": "1.0.
|
|
44
|
-
"@percy/logger": "1.0.
|
|
42
|
+
"@percy/client": "1.0.5",
|
|
43
|
+
"@percy/config": "1.0.5",
|
|
44
|
+
"@percy/dom": "1.0.5",
|
|
45
|
+
"@percy/logger": "1.0.5",
|
|
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": "
|
|
56
|
+
"gitHead": "7cf12904abb316ab7348332e68c8c0ef68d78097"
|
|
56
57
|
}
|
package/test/helpers/index.js
CHANGED
|
@@ -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
|
-
|
|
28
|
-
|
|
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';
|
package/test/helpers/server.js
CHANGED