expect-webdriverio 6.0.6 → 6.0.7
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.7",
|
|
4
4
|
"author": "Mykola Grybyk <mykola.grybyk@gmail.com>",
|
|
5
5
|
"description": "WebdriverIO Assertion Library",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,10 @@
|
|
|
45
45
|
],
|
|
46
46
|
"./types": "./types/expect-global.d.ts",
|
|
47
47
|
"./expect-global": "./types/expect-global.d.ts",
|
|
48
|
-
"./api":
|
|
48
|
+
"./api": {
|
|
49
|
+
"types": "./types/expect-webdriverio.d.ts",
|
|
50
|
+
"import": "./lib/api/index.js"
|
|
51
|
+
}
|
|
49
52
|
},
|
|
50
53
|
"types": "./types/expect-webdriverio.d.ts",
|
|
51
54
|
"typeScriptVersion": "3.8.3",
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
"ts:jasmine-global-expect-async": "cd test-types/jasmine-global-expect-async && vitest --typecheck --typecheck.tsconfig ./tsconfig.json --run",
|
|
71
74
|
"ts:jest:@types-jest": "cd test-types/jest-@types_jest && vitest --typecheck --typecheck.tsconfig ./tsconfig.json --run",
|
|
72
75
|
"ts:mocha": "cd test-types/mocha && vitest --typecheck --typecheck.tsconfig ./tsconfig.json --run",
|
|
76
|
+
"ts:arethetypeswrong": "npx @arethetypeswrong/cli --pack . --profile esm-only",
|
|
73
77
|
"checks:all": "npm run build && npm run compile && npm run tsc:root-types && npm run test && npm run ts",
|
|
74
78
|
"watch": "npm run compile -- --watch",
|
|
75
79
|
"prepare": "husky",
|
|
@@ -85,6 +89,7 @@
|
|
|
85
89
|
"jest-matcher-utils": "^30.4.1"
|
|
86
90
|
},
|
|
87
91
|
"devDependencies": {
|
|
92
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
88
93
|
"@jest/globals": "^30.4.1",
|
|
89
94
|
"@types/debug": "^4.1.13",
|
|
90
95
|
"@types/jasmine": "^5.1.15",
|
|
@@ -22,7 +22,6 @@ 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 WdioSome<T> = import('expect-webdriverio/api').WdioSome<T>
|
|
26
25
|
|
|
27
26
|
// Extracted from the expect library, this is the type of the matcher function used in the expect library.
|
|
28
27
|
type RawMatcherFn<Context extends ExpectLibMatcherContext = ExpectLibMatcherContext> = {
|
|
@@ -30,6 +29,10 @@ type RawMatcherFn<Context extends ExpectLibMatcherContext = ExpectLibMatcherCont
|
|
|
30
29
|
(this: Context, actual: any, ...expected: Array<any>): ExpectLibExpectationResult;
|
|
31
30
|
}
|
|
32
31
|
|
|
32
|
+
interface WdioSome<T> {
|
|
33
|
+
readonly elements: T
|
|
34
|
+
}
|
|
35
|
+
|
|
33
36
|
/**
|
|
34
37
|
* Indicates that a value can be either one T or an array of T.
|
|
35
38
|
*/
|
|
@@ -1274,9 +1277,6 @@ declare module 'expect-webdriverio' {
|
|
|
1274
1277
|
* Required since importing from 'expect-webdriverio' can trigger double initialization.
|
|
1275
1278
|
*/
|
|
1276
1279
|
declare module 'expect-webdriverio/api' {
|
|
1277
|
-
export interface WdioSome<T> {
|
|
1278
|
-
readonly elements: T
|
|
1279
|
-
}
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Quantifier modifier. Wraps a `$$()` result so that the matcher passes
|
|
1282
1282
|
* when at least one element satisfies the condition (∃ semantics).
|