@appium/test-support 3.0.28 → 3.0.30
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 +9 -17
- package/build/lib/mock-utils.d.ts +1 -1
- package/build/lib/mock-utils.d.ts.map +1 -1
- package/package.json +4 -7
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
@appium/test-support
|
|
2
|
-
===================
|
|
1
|
+
# @appium/test-support
|
|
3
2
|
|
|
4
|
-
A collection of test utility
|
|
3
|
+
> A collection of test utility libs used across Appium packages
|
|
5
4
|
|
|
6
|
-
[](https://npmjs.org/package/@appium/test-support)
|
|
6
|
+
[](https://npmjs.org/package/@appium/test-support)
|
|
7
7
|
|
|
8
|
-
##
|
|
8
|
+
## Installation
|
|
9
9
|
|
|
10
10
|
```
|
|
11
11
|
npm install @appium/test-support --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## Usage
|
|
15
15
|
|
|
16
16
|
### stubEnv
|
|
17
17
|
|
|
@@ -59,7 +59,7 @@ describe('myTest', () => {
|
|
|
59
59
|
|
|
60
60
|
### withSandbox
|
|
61
61
|
|
|
62
|
-
Use when mixing up sinon
|
|
62
|
+
Use when mixing up `sinon` APIs (mocks, spies, stubs).
|
|
63
63
|
|
|
64
64
|
```js
|
|
65
65
|
import { withSandbox } from '@appium/test-support';
|
|
@@ -145,14 +145,6 @@ can be scripted. Toward that, there are two scripts:
|
|
|
145
145
|
* `android-emu-travis-post` - waits for the device to be booted, and then goes
|
|
146
146
|
to its home screen
|
|
147
147
|
|
|
148
|
-
##
|
|
148
|
+
## License
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
npm run watch
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
## Test
|
|
155
|
-
|
|
156
|
-
```
|
|
157
|
-
npm test
|
|
158
|
-
```
|
|
150
|
+
Apache-2.0
|
|
@@ -34,7 +34,7 @@ export class MockStore<Mocks extends Record<string, any>> {
|
|
|
34
34
|
/**
|
|
35
35
|
* @param {Mocks} mockDefs
|
|
36
36
|
*/
|
|
37
|
-
createMocks(mockDefs: Mocks):
|
|
37
|
+
createMocks(mockDefs: Mocks): this;
|
|
38
38
|
/**
|
|
39
39
|
* Calls {@linkcode SinonSandbox.verify} on the `sandbox` prop, if it exists
|
|
40
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-utils.d.ts","sourceRoot":"","sources":["../../lib/mock-utils.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,oCAJW,OAAO,MAAM,GAAC,MAAM,EAAC,GAAG,CAAC,iCACH,IAAI,GACxB,MAAM,IAAI,CAatB;AAED;;;GAGG;AACH,yDAEC;AAED;;;GAGG;AACH;IAaE;;;OAGG;IACH,sDAEC;IAlBD;;;OAGG;IACH,SAFU,YAAY,GAAC,SAAS,CAExB;IAgBR;;OAEG;IACH,sBAFW,KAAK,
|
|
1
|
+
{"version":3,"file":"mock-utils.d.ts","sourceRoot":"","sources":["../../lib/mock-utils.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,oCAJW,OAAO,MAAM,GAAC,MAAM,EAAC,GAAG,CAAC,iCACH,IAAI,GACxB,MAAM,IAAI,CAatB;AAED;;;GAGG;AACH,yDAEC;AAED;;;GAGG;AACH;IAaE;;;OAGG;IACH,sDAEC;IAlBD;;;OAGG;IACH,SAFU,YAAY,GAAC,SAAS,CAExB;IAgBR;;OAEG;IACH,sBAFW,KAAK,QAYf;IAED;;OAEG;IACH,eAOC;IAED,cAMC;;CACF;2BAGY,OAAO,OAAO,EAAE,YAAY;kBAjGvB,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/test-support",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.30",
|
|
4
4
|
"description": "A collection of test utilities used across Appium packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@appium/support": "^4.
|
|
48
|
+
"@appium/support": "^4.2.0",
|
|
49
49
|
"@colors/colors": "1.6.0",
|
|
50
50
|
"bluebird": "3.7.2",
|
|
51
51
|
"lodash": "4.17.21",
|
|
52
52
|
"loud-rejection": "2.2.0",
|
|
53
|
-
"sinon": "
|
|
53
|
+
"sinon": "17.0.1",
|
|
54
54
|
"source-map-support": "0.5.21"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
@@ -60,8 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"
|
|
64
|
-
"entryPoint": "./lib/index.js"
|
|
65
|
-
},
|
|
66
|
-
"gitHead": "67504604b7d4602561db2cb3529860b241bec427"
|
|
63
|
+
"gitHead": "76df4d600dcb7c867c37c3d7d302dc7fcc95ae09"
|
|
67
64
|
}
|