expect-webdriverio 6.0.9 → 6.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expect-webdriverio",
3
- "version": "6.0.9",
3
+ "version": "6.0.10",
4
4
  "author": "Mykola Grybyk <mykola.grybyk@gmail.com>",
5
5
  "description": "WebdriverIO Assertion Library",
6
6
  "license": "MIT",
@@ -99,10 +99,10 @@
99
99
  "@types/jest": "^30.0.0",
100
100
  "@types/mocha": "^10.0.10",
101
101
  "@types/node": "^24.13.3",
102
- "@vitest/coverage-v8": "^4.1.10",
102
+ "@vitest/coverage-v8": "^4.1.11",
103
103
  "@vitest/eslint-plugin": "^1.6.27",
104
104
  "@wdio/eslint": "^0.1.3",
105
- "@wdio/types": "^9.31.1",
105
+ "@wdio/types": "^9.31.2",
106
106
  "eslint": "^9.39.5",
107
107
  "husky": "^9.1.7",
108
108
  "npm-run-all2": "^9.0.3",
@@ -110,8 +110,8 @@
110
110
  "rimraf": "^6.1.3",
111
111
  "strip-ansi": "^7.2.0",
112
112
  "typescript": "^5.9.3",
113
- "vitest": "^4.1.10",
114
- "webdriverio": "^9.30.1"
113
+ "vitest": "^4.1.11",
114
+ "webdriverio": "^9.31.5"
115
115
  },
116
116
  "peerDependencies": {
117
117
  "@wdio/globals": "^9.0.0",
@@ -22,6 +22,7 @@ type ExpectLibExpectationResult = import('expect').ExpectationResult
22
22
  type ExpectLibMatcherContext = import('expect').MatcherContext
23
23
  type MatchersObject = Parameters<typeof import('expect').expect.extend>[0]
24
24
  type ExpectLibAnything = ReturnType<typeof expect.any> | ReturnType<typeof expect.anything>
25
+ type WdioGetHTMLOptions = NonNullable<Parameters<WebdriverIO.Element['getHTML']>[0]>
25
26
 
26
27
  // Extracted from the expect library, this is the type of the matcher function used in the expect library.
27
28
  type RawMatcherFn<Context extends ExpectLibMatcherContext = ExpectLibMatcherContext> = {
@@ -1102,12 +1103,7 @@ declare namespace ExpectWebdriverIO {
1102
1103
  message?: string
1103
1104
  }
1104
1105
 
1105
- interface HTMLOptions extends StringOptions {
1106
- /**
1107
- * return the HTML with the selector tag included
1108
- */
1109
- includeSelectorTag?: boolean
1110
- }
1106
+ interface HTMLOptions extends StringOptions, WdioGetHTMLOptions {}
1111
1107
 
1112
1108
  interface StringOptions extends CommandOptions {
1113
1109
  /**