expect-webdriverio 1.4.0 → 1.4.1

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/webdriverio/expect-webdriverio.svg?branch=master)](https://travis-ci.org/webdriverio/expect-webdriverio) [![codecov](https://codecov.io/gh/webdriverio/expect-webdriverio/branch/master/graph/badge.svg)](https://codecov.io/gh/webdriverio/expect-webdriverio)
4
4
 
5
- ###### [TypeScript / JS Autocomplete](/docs/Types.md) | [Examples](docs/Examples.md) | [Extending Matchers](/docs/Extend.md)
5
+ ###### [API](docs/API.md) | [TypeScript / JS Autocomplete](/docs/Types.md) | [Examples](docs/Examples.md) | [Extending Matchers](/docs/Extend.md)
6
6
 
7
7
  > [WebdriverIO](https://webdriver.io/) Assertion library inspired by [expect](https://www.npmjs.com/package/expect)
8
8
 
@@ -24,7 +24,7 @@ NOTE: [WebdriverIO](https://github.com/webdriverio/webdriverio) `v5.16.11` or hi
24
24
 
25
25
  In your `wdio.conf.js`
26
26
  ```js
27
- beforeSession () { // before hook works as well
27
+ before () { // not needed in WebdriverIO v6
28
28
  require('expect-webdriverio')
29
29
  },
30
30
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expect-webdriverio",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -41,21 +41,21 @@
41
41
  "homepage": "https://github.com/webdriverio/expect-webdriverio#readme",
42
42
  "devDependencies": {
43
43
  "@types/jasmine": "^3.5.14",
44
- "@types/jest": "^26.0.13",
45
- "@types/node": "^14.10.1",
46
- "@typescript-eslint/eslint-plugin": "^4.1.0",
47
- "@typescript-eslint/parser": "^4.1.0",
48
- "codecov": "^3.7.2",
49
- "eslint": "^7.9.0",
44
+ "@types/jest": "^26.0.14",
45
+ "@types/node": "^14.11.8",
46
+ "@typescript-eslint/eslint-plugin": "^4.4.1",
47
+ "@typescript-eslint/parser": "^4.4.1",
48
+ "codecov": "^3.8.0",
49
+ "eslint": "^7.11.0",
50
50
  "husky": "^4.3.0",
51
- "jest": "^26.4.2",
51
+ "jest": "^26.5.3",
52
52
  "np": "^6.5.0",
53
53
  "npm-run-all": "^4.1.5",
54
54
  "rimraf": "^3.0.2",
55
55
  "shelljs": "^0.8.4",
56
- "ts-jest": "^26.3.0",
57
- "typescript": "^3.9.7",
58
- "webdriverio": "^6.5.0"
56
+ "ts-jest": "^26.4.1",
57
+ "typescript": "^4.0.3",
58
+ "webdriverio": "^6.6.4"
59
59
  },
60
60
  "types": "types/jest-global.d.ts",
61
61
  "typeScriptVersion": "3.8.3",
@@ -65,7 +65,7 @@
65
65
  }
66
66
  },
67
67
  "dependencies": {
68
- "expect": "^26.4.2",
69
- "jest-matcher-utils": "^26.4.2"
68
+ "expect": "^26.5.3",
69
+ "jest-matcher-utils": "^26.5.2"
70
70
  }
71
71
  }
@@ -9,6 +9,7 @@ declare namespace ExpectWebdriverIO {
9
9
 
10
10
  type Expect = {
11
11
  <T = unknown>(actual: T): Matchers<T, T>
12
+ extend(map: Record<string, Function>): void
12
13
  } & AsymmetricMatchers
13
14
 
14
15
  type AsymmetricMatchers = {