@wdio/mocha-framework 7.16.0 → 7.16.6
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 +2 -12
- package/build/index.d.ts +7 -0
- package/build/index.d.ts.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,19 +5,9 @@ WDIO Mocha Framework Adapter
|
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
8
|
-
The easiest way is to keep `@wdio/mocha-framework` as a devDependency in your `package.json
|
|
8
|
+
The easiest way is to keep `@wdio/mocha-framework` as a devDependency in your `package.json`, via:
|
|
9
9
|
|
|
10
|
-
```
|
|
11
|
-
{
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"@wdio/mocha-framework": "^6.3.6"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
You can simple do it by:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
10
|
+
```sh
|
|
21
11
|
npm install @wdio/mocha-framework --save-dev
|
|
22
12
|
```
|
|
23
13
|
|
package/build/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/// <reference types="expect-webdriverio/types/standalone" />
|
|
2
3
|
import Mocha from 'mocha';
|
|
3
4
|
import type { Capabilities, Services } from '@wdio/types';
|
|
4
5
|
import type { MochaConfig, MochaOpts as MochaOptsImport, FrameworkMessage, FormattedMessage, MochaContext, MochaError } from './types';
|
|
5
6
|
import type { EventEmitter } from 'events';
|
|
7
|
+
import type ExpectWebdriverIO from 'expect-webdriverio';
|
|
6
8
|
declare type EventTypes = 'hook' | 'test' | 'suite';
|
|
7
9
|
/**
|
|
8
10
|
* Mocha runner
|
|
@@ -51,5 +53,10 @@ declare global {
|
|
|
51
53
|
interface MochaOpts extends MochaOptsImport {
|
|
52
54
|
}
|
|
53
55
|
}
|
|
56
|
+
namespace NodeJS {
|
|
57
|
+
interface Global {
|
|
58
|
+
expect: ExpectWebdriverIO.Expect;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
54
61
|
}
|
|
55
62
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA,OAAO,KAAiB,MAAM,OAAO,CAAA;AAKrC,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAIzD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,IAAI,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACtI,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,KAAK,iBAAiB,MAAM,oBAAoB,CAAA;AAgBvD,aAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;AAG3C;;GAEG;AACH,cAAM,YAAY;IAaV,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,SAAS;IAhBrB,OAAO,CAAC,MAAM,CAAC,CAAO;IACtB,OAAO,CAAC,OAAO,CAAC,CAAQ;IACxB,OAAO,CAAC,cAAc,CAAC,CAAO;IAE9B,OAAO,CAAC,MAAM,CAAI;IAClB,OAAO,CAAC,SAAS,CAAO;IACxB,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,SAAS,CAAiC;IAClD,OAAO,CAAC,QAAQ,CAAiC;IACjD,OAAO,CAAC,QAAQ,CAAiC;gBAGrC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,WAAW,EACpB,M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|
3
|
-
"version": "7.16.
|
|
3
|
+
"version": "7.16.6",
|
|
4
4
|
"description": "A WebdriverIO plugin. Adapter for Mocha testing framework.",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-mocha-framework",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@types/mocha": "^9.0.0",
|
|
26
26
|
"@wdio/logger": "7.16.0",
|
|
27
|
-
"@wdio/types": "7.16.
|
|
28
|
-
"@wdio/utils": "7.16.
|
|
27
|
+
"@wdio/types": "7.16.3",
|
|
28
|
+
"@wdio/utils": "7.16.3",
|
|
29
29
|
"expect-webdriverio": "^3.0.0",
|
|
30
30
|
"mocha": "^9.0.0"
|
|
31
31
|
},
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"types": "./build/index.d.ts",
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "3c4691df750c120c1b05d168d1b50bf047512892"
|
|
40
40
|
}
|