expect-webdriverio 4.11.1 → 4.11.2

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.
Files changed (2) hide show
  1. package/lib/snapshot.js +3 -3
  2. package/package.json +1 -1
package/lib/snapshot.js CHANGED
@@ -22,7 +22,7 @@ class WebdriverIOSnapshotEnvironment extends NodeSnapshotEnvironment {
22
22
  }
23
23
  async resolvePath(filepath) {
24
24
  if (__classPrivateFieldGet(this, _WebdriverIOSnapshotEnvironment_resolveSnapshotPath, "f")) {
25
- return Promise.resolve(__classPrivateFieldGet(this, _WebdriverIOSnapshotEnvironment_resolveSnapshotPath, "f").call(this, filepath, '.snap'));
25
+ return __classPrivateFieldGet(this, _WebdriverIOSnapshotEnvironment_resolveSnapshotPath, "f").call(this, filepath, '.snap');
26
26
  }
27
27
  return super.resolvePath(filepath);
28
28
  }
@@ -60,10 +60,10 @@ export class SnapshotService {
60
60
  get results() {
61
61
  return __classPrivateFieldGet(this, _SnapshotService_snapshotResults, "f");
62
62
  }
63
- beforeTest(test) {
63
+ async beforeTest(test) {
64
64
  __classPrivateFieldSet(this, _SnapshotService_currentFilePath, test.file, "f");
65
65
  __classPrivateFieldSet(this, _SnapshotService_currentTestName, `${test.parent} > ${test.title}`, "f");
66
- __classPrivateFieldGet(this, _SnapshotService_snapshotClient, "f").startCurrentRun(test.file, test.fullTitle, __classPrivateFieldGet(this, _SnapshotService_options, "f"));
66
+ await __classPrivateFieldGet(this, _SnapshotService_snapshotClient, "f").startCurrentRun(test.file, test.fullTitle, __classPrivateFieldGet(this, _SnapshotService_options, "f"));
67
67
  }
68
68
  async after() {
69
69
  const result = await __classPrivateFieldGet(this, _SnapshotService_snapshotClient, "f").finishCurrentRun();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expect-webdriverio",
3
- "version": "4.11.1",
3
+ "version": "4.11.2",
4
4
  "author": "Mykola Grybyk <mykola.grybyk@gmail.com>",
5
5
  "description": "WebdriverIO Assertion Library",
6
6
  "license": "MIT",