@wdio/globals 10.1.0-alpha.30 → 10.1.0

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/build/index.d.ts CHANGED
@@ -8,6 +8,11 @@ declare global {
8
8
  }
9
9
  interface MultiRemoteBrowser {
10
10
  }
11
+ /**
12
+ * The type of the global `expect`. A framework adapter can add call signatures to it.
13
+ */
14
+ interface GlobalExpect extends ExpectWebdriverIO.Expect {
15
+ }
11
16
  }
12
17
  }
13
18
  export declare const browser: WebdriverIO.Browser;
@@ -15,7 +20,7 @@ export declare const driver: WebdriverIO.Browser;
15
20
  export declare const multiRemoteBrowser: WebdriverIO.MultiRemoteBrowser;
16
21
  export declare const $: WebdriverIO.Browser['$'];
17
22
  export declare const $$: WebdriverIO.Browser['$$'];
18
- export declare const expect: ExpectWebdriverIO.Expect;
23
+ export declare const expect: WebdriverIO.GlobalExpect;
19
24
  /**
20
25
  * allows to set global property to be imported and used later on
21
26
  * @param key global key
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,KAAK,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,GAAG,GAAG,IAAI,GAAG,QAAQ,GAAG,oBAAoB,CAAA;AAE3F,OAAO,CAAC,MAAM,CAAC;IAEX,IAAI,YAAY,EAAE,GAAG,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAA;IAC5C,UAAU,WAAW,CAAC;QAClB,UAAU,OAAO;SAAG;QACpB,UAAU,OAAO;SAAG;QACpB,UAAU,kBAAkB;SAAG;KAClC;CACJ;AAoCD,eAAO,MAAM,OAAO,EAAE,WAAW,CAAC,OAGjC,CAAA;AACD,eAAO,MAAM,MAAM,EAAE,WAAW,CAAC,OAGhC,CAAA;AACD,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,kBAG5C,CAAA;AAGD,eAAO,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO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
1
1
  {
2
2
  "name": "@wdio/globals",
3
- "version": "10.1.0-alpha.30+684eb7240",
3
+ "version": "10.1.0",
4
4
  "description": "A helper utility for importing global variables directly",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-globals",
@@ -40,7 +40,7 @@
40
40
  "access": "public"
41
41
  },
42
42
  "peerDependencies": {
43
- "expect-webdriverio": "^8.0.0-0 || ^8.0.0-alpha.3",
43
+ "expect-webdriverio": "^8.0.0",
44
44
  "webdriverio": "^10.0.0-0 || ^10.0.0"
45
45
  },
46
46
  "peerDependenciesMeta": {
@@ -52,8 +52,8 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
- "@wdio/types": "10.1.0-alpha.30+684eb7240",
56
- "webdriverio": "10.1.0-alpha.30+684eb7240"
55
+ "@wdio/types": "10.1.0",
56
+ "webdriverio": "10.1.0"
57
57
  },
58
- "gitHead": "684eb7240a156d5b312154225303f5e95d7957ea"
58
+ "gitHead": "f9e88c9fd7b1665f4e85400d8970c53ec02631bb"
59
59
  }
package/types.d.ts CHANGED
@@ -1,11 +1,18 @@
1
1
  type ExpectType = import('expect-webdriverio').Expect
2
2
 
3
+ declare namespace WebdriverIO {
4
+ /**
5
+ * The type of the global `expect`. A framework adapter can add call signatures to it.
6
+ */
7
+ interface GlobalExpect extends ExpectType {}
8
+ }
9
+
3
10
  declare namespace NodeJS {
4
11
  interface Global {
5
12
  multiRemoteBrowser: WebdriverIO.MultiRemoteBrowser
6
13
  browser: WebdriverIO.Browser
7
14
  driver: WebdriverIO.Browser
8
- expect: ExpectType
15
+ expect: WebdriverIO.GlobalExpect
9
16
  }
10
17
  }
11
18
 
@@ -14,7 +21,7 @@ declare function $$(...args: Parameters<WebdriverIO.Browser['$$']>): ReturnType<
14
21
  declare var multiRemoteBrowser: WebdriverIO.MultiRemoteBrowser
15
22
  declare var browser: WebdriverIO.Browser
16
23
  declare var driver: WebdriverIO.Browser
17
- declare var expect: ExpectType
24
+ declare var expect: WebdriverIO.GlobalExpect
18
25
 
19
26
  /**
20
27
  * custom environment primitives for WebdriverIO when running in a browser