@web/test-runner-commands
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -204,2 +204,11 @@ import { | ||
/** | ||
* If no snapshot exists on disk or if update-snapshots is set to true server-side, | ||
* the passed snapshot is saved. Otherwise the snapshot is compared with what's stored | ||
* on disk. If the snapshots are not equal, an error is thrown. | ||
* | ||
* @param options | ||
*/ | ||
export function compareSnapshot(options: { name: string; content: string }): Promise<void>; | ||
export { Media, Viewport, SendKeysPayload, WriteFilePayload, ReadFilePayload, RemoveFilePayload }; |
# @web/test-runner-commands | ||
## 0.5.2 | ||
### Patch Changes | ||
- 91e0e617: add compareSnapshot function | ||
## 0.5.1 | ||
@@ -4,0 +10,0 @@ |
@@ -59,8 +59,6 @@ "use strict"; | ||
} | ||
const promiseObj = { | ||
resolve: () => { }, | ||
promise: new Promise(resolve => { | ||
promiseObj.resolve = resolve; | ||
}), | ||
}; | ||
const promiseObj = { resolve: () => { }, promise: Promise.resolve() }; | ||
promiseObj.promise = new Promise(resolve => { | ||
promiseObj.resolve = resolve; | ||
}); | ||
this.readOperations.set(testFilePath, promiseObj); | ||
@@ -67,0 +65,0 @@ // store in cache |
{ | ||
"name": "@web/test-runner-commands", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -64,8 +64,6 @@ /* eslint-disable @typescript-eslint/no-empty-function */ | ||
const promiseObj = { | ||
resolve: () => {}, | ||
promise: new Promise<void>(resolve => { | ||
promiseObj.resolve = resolve; | ||
}), | ||
}; | ||
const promiseObj = { resolve: () => {}, promise: Promise.resolve() }; | ||
promiseObj.promise = new Promise<void>(resolve => { | ||
promiseObj.resolve = resolve; | ||
}); | ||
this.readOperations.set(testFilePath, promiseObj); | ||
@@ -72,0 +70,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83789
1437