expect-webdriverio 6.0.8 → 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.
|
|
3
|
+
"version": "6.0.10",
|
|
4
4
|
"author": "Mykola Grybyk <mykola.grybyk@gmail.com>",
|
|
5
5
|
"description": "WebdriverIO Assertion Library",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,10 +45,13 @@
|
|
|
45
45
|
],
|
|
46
46
|
"./types": "./types/expect-global.d.ts",
|
|
47
47
|
"./expect-global": "./types/expect-global.d.ts",
|
|
48
|
-
"./api":
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
"./api": [
|
|
49
|
+
{
|
|
50
|
+
"types": "./types/expect-webdriverio.d.ts",
|
|
51
|
+
"import": "./lib/api/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./lib/api/index.js"
|
|
54
|
+
]
|
|
52
55
|
},
|
|
53
56
|
"types": "./types/expect-webdriverio.d.ts",
|
|
54
57
|
"typeScriptVersion": "3.8.3",
|
|
@@ -96,10 +99,10 @@
|
|
|
96
99
|
"@types/jest": "^30.0.0",
|
|
97
100
|
"@types/mocha": "^10.0.10",
|
|
98
101
|
"@types/node": "^24.13.3",
|
|
99
|
-
"@vitest/coverage-v8": "^4.1.
|
|
102
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
100
103
|
"@vitest/eslint-plugin": "^1.6.27",
|
|
101
104
|
"@wdio/eslint": "^0.1.3",
|
|
102
|
-
"@wdio/types": "^9.31.
|
|
105
|
+
"@wdio/types": "^9.31.2",
|
|
103
106
|
"eslint": "^9.39.5",
|
|
104
107
|
"husky": "^9.1.7",
|
|
105
108
|
"npm-run-all2": "^9.0.3",
|
|
@@ -107,8 +110,8 @@
|
|
|
107
110
|
"rimraf": "^6.1.3",
|
|
108
111
|
"strip-ansi": "^7.2.0",
|
|
109
112
|
"typescript": "^5.9.3",
|
|
110
|
-
"vitest": "^4.1.
|
|
111
|
-
"webdriverio": "^9.
|
|
113
|
+
"vitest": "^4.1.11",
|
|
114
|
+
"webdriverio": "^9.31.5"
|
|
112
115
|
},
|
|
113
116
|
"peerDependencies": {
|
|
114
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
|
/**
|