Socket
Socket
Sign inDemoInstall

@web/test-runner-commands

Package Overview
Dependencies
Maintainers
7
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/test-runner-commands - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

9

browser/commands.d.ts

@@ -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 @@

10

dist/snapshotPlugin.js

@@ -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

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc