mirror of
https://github.com/appium/appium.git
synced 2026-10-16 20:32:05 +08:00
chore: Remove the obsolete @appium/test-support package (#22351)
This commit is contained in:
@@ -29,8 +29,6 @@ targets:
|
||||
path: ./packages/fake-driver
|
||||
- type: npm
|
||||
path: ./packages/support
|
||||
- type: npm
|
||||
path: ./packages/test-support
|
||||
- type: npm
|
||||
path: ./packages/types
|
||||
- type: npm
|
||||
|
||||
@@ -128,11 +128,6 @@ labels:
|
||||
matcher:
|
||||
files: ['packages/strongbox/**']
|
||||
|
||||
- label: '@appium/test-support'
|
||||
sync: true
|
||||
matcher:
|
||||
files: ['packages/test-support/**']
|
||||
|
||||
- label: '@appium/tsconfig'
|
||||
sync: true
|
||||
matcher:
|
||||
|
||||
+1
-1
@@ -33,7 +33,6 @@ to driver/client documentation
|
||||
* [schema](packages/schema/CHANGELOG.md)
|
||||
* [strongbox](packages/strongbox/CHANGELOG.md)
|
||||
* [support](packages/support/CHANGELOG.md)
|
||||
* [test-support](packages/test-support/CHANGELOG.md)
|
||||
* [tsconfig](packages/tsconfig/CHANGELOG.md)
|
||||
* [types](packages/types/CHANGELOG.md)
|
||||
|
||||
@@ -42,4 +41,5 @@ The changelog links used for these modules lead to the last version of their cha
|
||||
* [doctor](https://github.com/appium/appium/blob/8daf5e123ac14c8325acf504fb33eb28e1a3dd78/packages/doctor/CHANGELOG.md) ([removal PR](https://github.com/appium/appium/pull/20805))
|
||||
* [eslint-config-appium](https://github.com/appium/appium/blob/4b3a8c2197a587ec5a2606b662e4e7667a7852cb/packages/eslint-config-appium/CHANGELOG.md) ([removal PR](https://github.com/appium/appium/pull/20856))
|
||||
* [gulp-plugins](https://github.com/appium/appium/blob/0823f0b60e40395cd1dc3b72cfa3c0092bc81302/packages/gulp-plugins/CHANGELOG.md) ([removal PR](https://github.com/appium/appium/pull/17943))
|
||||
* [test-support](https://github.com/appium/appium/blob/1a46d7d61ee49c7e82a63687c5647c42ab69513d/packages/test-support/CHANGELOG.md) ([removal PR](https://github.com/appium/appium/pull/22351))
|
||||
* [typedoc-plugin-appium](https://github.com/appium/appium/blob/d6204b6902074210943d7bbbf72d139b9b170a20/packages/typedoc-plugin-appium/CHANGELOG.md) ([removal PR](https://github.com/appium/appium/pull/19465))
|
||||
|
||||
@@ -8,7 +8,6 @@ const testFileConfigItems = appiumConfig.filter(
|
||||
(item) => typeof item?.name === 'string' && item.name.startsWith('Test Files'),
|
||||
);
|
||||
const testSupportFiles = [
|
||||
'packages/test-support/lib/**',
|
||||
'packages/driver-test-support/lib/**',
|
||||
'packages/plugin-test-support/lib/**',
|
||||
];
|
||||
|
||||
Generated
-52
@@ -180,10 +180,6 @@
|
||||
"resolved": "packages/support",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@appium/test-support": {
|
||||
"resolved": "packages/test-support",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@appium/tsconfig": {
|
||||
"resolved": "packages/tsconfig",
|
||||
"link": true
|
||||
@@ -5146,13 +5142,6 @@
|
||||
"dequal": "^2.0.3"
|
||||
}
|
||||
},
|
||||
"node_modules/array-find-index": {
|
||||
"version": "1.0.2",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/array-ify": {
|
||||
"version": "1.0.0",
|
||||
"dev": true,
|
||||
@@ -7333,16 +7322,6 @@
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/currently-unhandled": {
|
||||
"version": "0.4.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"array-find-index": "^1.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/dargs": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz",
|
||||
@@ -12207,17 +12186,6 @@
|
||||
"version": "0.8.4",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/loud-rejection": {
|
||||
"version": "2.2.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"currently-unhandled": "^0.4.1",
|
||||
"signal-exit": "^3.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/lru-cache": {
|
||||
"version": "7.18.3",
|
||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
|
||||
@@ -20085,26 +20053,6 @@
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"packages/test-support": {
|
||||
"name": "@appium/test-support",
|
||||
"version": "4.1.5",
|
||||
"deprecated": "This module is deprecated. Use sinon directly instead (e.g., sinon.createSandbox() with Mocha hooks).",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@appium/support": "7.2.3",
|
||||
"@colors/colors": "1.6.0",
|
||||
"loud-rejection": "2.2.0",
|
||||
"sinon": "22.0.0"
|
||||
},
|
||||
"bin": {
|
||||
"android-emu-travis-post": "bin/android-emu-travis-post.sh",
|
||||
"android-emu-travis-pre": "bin/android-emu-travis-pre.sh"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
||||
"npm": ">=10"
|
||||
}
|
||||
},
|
||||
"packages/tsconfig": {
|
||||
"name": "@appium/tsconfig",
|
||||
"version": "1.1.2",
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
{"path": "../support"},
|
||||
{"path": "../base-driver"},
|
||||
{"path": "../base-plugin"},
|
||||
{"path": "../fake-driver"},
|
||||
{"path": "../test-support"}
|
||||
{"path": "../fake-driver"}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
"description": "Configuration when running Appium as a server",
|
||||
"properties": {
|
||||
"address": {
|
||||
"appiumCliAliases": ["a"],
|
||||
"appiumCliAliases": [
|
||||
"a"
|
||||
],
|
||||
"default": "0.0.0.0",
|
||||
"description": "IPv4/IPv6 address or a hostname to listen on",
|
||||
"title": "address config",
|
||||
@@ -48,20 +50,26 @@
|
||||
"uniqueItems": true
|
||||
},
|
||||
"base-path": {
|
||||
"appiumCliAliases": ["pa"],
|
||||
"appiumCliAliases": [
|
||||
"pa"
|
||||
],
|
||||
"default": "",
|
||||
"description": "Base path to use as the prefix for all webdriver routes running on the server",
|
||||
"title": "base-path config",
|
||||
"type": "string"
|
||||
},
|
||||
"callback-address": {
|
||||
"appiumCliAliases": ["ca"],
|
||||
"appiumCliAliases": [
|
||||
"ca"
|
||||
],
|
||||
"description": "Callback IP address (default: same as \"address\")",
|
||||
"title": "callback-address config",
|
||||
"type": "string"
|
||||
},
|
||||
"callback-port": {
|
||||
"appiumCliAliases": ["cp"],
|
||||
"appiumCliAliases": [
|
||||
"cp"
|
||||
],
|
||||
"default": 4723,
|
||||
"description": "Callback port (default: same as \"port\")",
|
||||
"maximum": 65535,
|
||||
@@ -77,7 +85,9 @@
|
||||
},
|
||||
"default-capabilities": {
|
||||
"$comment": "TODO",
|
||||
"appiumCliAliases": ["dc"],
|
||||
"appiumCliAliases": [
|
||||
"dc"
|
||||
],
|
||||
"description": "Set the default desired capabilities, which will be set on each session unless overridden by received capabilities. If a string, a path to a JSON file containing the capabilities, or raw JSON.",
|
||||
"title": "default-capabilities config",
|
||||
"type": "object"
|
||||
@@ -101,7 +111,9 @@
|
||||
"type": "object"
|
||||
},
|
||||
"keep-alive-timeout": {
|
||||
"appiumCliAliases": ["ka"],
|
||||
"appiumCliAliases": [
|
||||
"ka"
|
||||
],
|
||||
"default": 600,
|
||||
"description": "Number of seconds the Appium server should apply as both the keep-alive timeout and the connection timeout for all requests. A value of 0 disables the timeout.",
|
||||
"minimum": 0,
|
||||
@@ -122,7 +134,9 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"log": {
|
||||
"appiumCliAliases": ["g"],
|
||||
"appiumCliAliases": [
|
||||
"g"
|
||||
],
|
||||
"appiumCliDest": "logFile",
|
||||
"description": "Also send log output to this file",
|
||||
"title": "log config",
|
||||
@@ -170,7 +184,11 @@
|
||||
"appiumCliDest": "logFormat",
|
||||
"default": "text",
|
||||
"description": "Log format (text|json|pretty_json)",
|
||||
"enum": ["text", "json", "pretty_json"],
|
||||
"enum": [
|
||||
"text",
|
||||
"json",
|
||||
"pretty_json"
|
||||
],
|
||||
"title": "log-format config",
|
||||
"type": "string"
|
||||
},
|
||||
@@ -223,7 +241,9 @@
|
||||
"type": "object"
|
||||
},
|
||||
"port": {
|
||||
"appiumCliAliases": ["p"],
|
||||
"appiumCliAliases": [
|
||||
"p"
|
||||
],
|
||||
"default": 4723,
|
||||
"description": "Port to listen on",
|
||||
"maximum": 65535,
|
||||
@@ -304,7 +324,9 @@
|
||||
},
|
||||
"webhook": {
|
||||
"$comment": "This should probably use a uri-template format to restrict the protocol to http/https",
|
||||
"appiumCliAliases": ["G"],
|
||||
"appiumCliAliases": [
|
||||
"G"
|
||||
],
|
||||
"description": "Also send log output to this http listener",
|
||||
"format": "uri",
|
||||
"title": "webhook config",
|
||||
@@ -343,9 +365,13 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["text"],
|
||||
"required": [
|
||||
"text"
|
||||
],
|
||||
"not": {
|
||||
"required": ["pattern"]
|
||||
"required": [
|
||||
"pattern"
|
||||
]
|
||||
}
|
||||
},
|
||||
"logFilterRegex": {
|
||||
@@ -358,9 +384,13 @@
|
||||
"format": "regex"
|
||||
}
|
||||
},
|
||||
"required": ["pattern"],
|
||||
"required": [
|
||||
"pattern"
|
||||
],
|
||||
"not": {
|
||||
"required": ["text"]
|
||||
"required": [
|
||||
"text"
|
||||
]
|
||||
}
|
||||
},
|
||||
"logFilter": {
|
||||
@@ -395,4 +425,4 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,794 +0,0 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [4.1.5](https://github.com/appium/appium/compare/@appium/test-support@4.1.4...@appium/test-support@4.1.5) (2026-05-31)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.1.4](https://github.com/appium/appium/compare/@appium/test-support@4.1.3...@appium/test-support@4.1.4) (2026-05-07)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.1.3](https://github.com/appium/appium/compare/@appium/test-support@4.1.2...@appium/test-support@4.1.3) (2026-05-06)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.1.2](https://github.com/appium/appium/compare/@appium/test-support@4.1.1...@appium/test-support@4.1.2) (2026-05-06)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.1.1](https://github.com/appium/appium/compare/@appium/test-support@4.1.0...@appium/test-support@4.1.1) (2026-04-23)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* All the rest of linter warnings ([#22183](https://github.com/appium/appium/issues/22183)) ([efe167f](https://github.com/appium/appium/commit/efe167f59a0a19515b78a53346e5d0b3fc4c744c))
|
||||
|
||||
|
||||
|
||||
## [4.1.0](https://github.com/appium/appium/compare/@appium/test-support@4.0.6...@appium/test-support@4.1.0) (2026-04-09)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* use exact version for dependencies in monorepo packages instead of ^ ([#22090](https://github.com/appium/appium/issues/22090)) ([86c8f23](https://github.com/appium/appium/commit/86c8f23a670d0bbc2d359a8235828606bd36e6aa))
|
||||
|
||||
|
||||
|
||||
## [4.0.6](https://github.com/appium/appium/compare/@appium/test-support@4.0.5...@appium/test-support@4.0.6) (2026-03-08)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.0.5](https://github.com/appium/appium/compare/@appium/test-support@4.0.4...@appium/test-support@4.0.5) (2026-01-26)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.0.4](https://github.com/appium/appium/compare/@appium/test-support@4.0.3...@appium/test-support@4.0.4) (2025-12-04)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.0.3](https://github.com/appium/appium/compare/@appium/test-support@4.0.2...@appium/test-support@4.0.3) (2025-11-12)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.0.2](https://github.com/appium/appium/compare/@appium/test-support@4.0.1...@appium/test-support@4.0.2) (2025-10-08)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.0.1](https://github.com/appium/appium/compare/@appium/test-support@4.0.0...@appium/test-support@4.0.1) (2025-09-09)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.0.0](https://github.com/appium/appium/compare/@appium/test-support@4.0.0-rc.1...@appium/test-support@4.0.0) (2025-08-18)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.0.0-rc.1](https://github.com/appium/appium/compare/@appium/test-support@3.1.6...@appium/test-support@4.0.0-rc.1) (2025-08-14)
|
||||
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
* set minimum Node.js version to v20.19.0 (#21394)
|
||||
|
||||
### Miscellaneous Chores
|
||||
|
||||
* set minimum Node.js version to v20.19.0 ([#21394](https://github.com/appium/appium/issues/21394)) ([37e22c4](https://github.com/appium/appium/commit/37e22c4f9c9920cea3f340841ab1b7c60e3147e9))
|
||||
|
||||
|
||||
|
||||
## [3.1.10](https://github.com/appium/appium/compare/@appium/test-support@3.1.9...@appium/test-support@3.1.10) (2025-06-01)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.9](https://github.com/appium/appium/compare/@appium/test-support@3.1.8...@appium/test-support@3.1.9) (2025-04-25)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.8](https://github.com/appium/appium/compare/@appium/test-support@3.1.7...@appium/test-support@3.1.8) (2025-03-17)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.7](https://github.com/appium/appium/compare/@appium/test-support@3.1.6...@appium/test-support@3.1.7) (2025-03-11)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.6](https://github.com/appium/appium/compare/@appium/test-support@3.1.5...@appium/test-support@3.1.6) (2025-02-20)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.5](https://github.com/appium/appium/compare/@appium/test-support@3.1.4...@appium/test-support@3.1.5) (2025-02-20)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.4](https://github.com/appium/appium/compare/@appium/test-support@3.1.3...@appium/test-support@3.1.4) (2025-02-19)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.3](https://github.com/appium/appium/compare/@appium/test-support@3.1.2...@appium/test-support@3.1.3) (2025-01-08)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.2](https://github.com/appium/appium/compare/@appium/test-support@3.1.1...@appium/test-support@3.1.2) (2025-01-06)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.1](https://github.com/appium/appium/compare/@appium/test-support@3.1.0...@appium/test-support@3.1.1) (2025-01-02)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.1.0](https://github.com/appium/appium/compare/@appium/test-support@3.0.53...@appium/test-support@3.1.0) (2024-12-05)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **test-support:** Remove obsolete helpers ([#20817](https://github.com/appium/appium/issues/20817)) ([81a5b57](https://github.com/appium/appium/commit/81a5b576739f67c1c7f311217ecc50e467f5a491))
|
||||
|
||||
|
||||
|
||||
## [3.0.53](https://github.com/appium/appium/compare/@appium/test-support@3.0.52...@appium/test-support@3.0.53) (2024-12-02)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.52](https://github.com/appium/appium/compare/@appium/test-support@3.0.51...@appium/test-support@3.0.52) (2024-11-29)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.51](https://github.com/appium/appium/compare/@appium/test-support@3.0.50...@appium/test-support@3.0.51) (2024-10-24)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.50](https://github.com/appium/appium/compare/@appium/test-support@3.0.49...@appium/test-support@3.0.50) (2024-10-15)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.49](https://github.com/appium/appium/compare/@appium/test-support@3.0.48...@appium/test-support@3.0.49) (2024-09-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test-support:** update dependency sinon to v19 ([#20576](https://github.com/appium/appium/issues/20576)) ([6a8f26a](https://github.com/appium/appium/commit/6a8f26a9cbf01a7c9181c90bb999d332a343d94d))
|
||||
|
||||
|
||||
|
||||
## [3.0.48](https://github.com/appium/appium/compare/@appium/test-support@3.0.47...@appium/test-support@3.0.48) (2024-09-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test-support:** update dependency sinon to v18.0.1 ([980aa69](https://github.com/appium/appium/commit/980aa69b931bab815e353945f392429a6772182d))
|
||||
|
||||
|
||||
|
||||
## [3.0.47](https://github.com/appium/appium/compare/@appium/test-support@3.0.46...@appium/test-support@3.0.47) (2024-08-07)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.46](https://github.com/appium/appium/compare/@appium/test-support@3.0.45...@appium/test-support@3.0.46) (2024-07-10)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.45](https://github.com/appium/appium/compare/@appium/test-support@3.0.44...@appium/test-support@3.0.45) (2024-06-28)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.44](https://github.com/appium/appium/compare/@appium/test-support@3.0.43...@appium/test-support@3.0.44) (2024-06-27)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.43](https://github.com/appium/appium/compare/@appium/test-support@3.0.42...@appium/test-support@3.0.43) (2024-06-11)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.42](https://github.com/appium/appium/compare/@appium/test-support@3.0.41...@appium/test-support@3.0.42) (2024-06-11)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.41](https://github.com/appium/appium/compare/@appium/test-support@3.0.40...@appium/test-support@3.0.41) (2024-06-11)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.40](https://github.com/appium/appium/compare/@appium/test-support@3.0.39...@appium/test-support@3.0.40) (2024-06-10)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.39](https://github.com/appium/appium/compare/@appium/test-support@3.0.38...@appium/test-support@3.0.39) (2024-06-06)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.38](https://github.com/appium/appium/compare/@appium/test-support@3.0.37...@appium/test-support@3.0.38) (2024-06-06)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.37](https://github.com/appium/appium/compare/@appium/test-support@3.0.36...@appium/test-support@3.0.37) (2024-06-06)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.36](https://github.com/appium/appium/compare/@appium/test-support@3.0.35...@appium/test-support@3.0.36) (2024-05-27)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test-support:** update dependency sinon to v17.0.2 ([#20078](https://github.com/appium/appium/issues/20078)) ([2acf262](https://github.com/appium/appium/commit/2acf262482750bb7b56f46dc3b9ad3168de8000a))
|
||||
* **test-support:** update dependency sinon to v18 ([#20128](https://github.com/appium/appium/issues/20128)) ([465495e](https://github.com/appium/appium/commit/465495ef2ae436039f80a1ba397bb26a22ec01c6))
|
||||
|
||||
|
||||
|
||||
## [3.0.35](https://github.com/appium/appium/compare/@appium/test-support@3.0.34...@appium/test-support@3.0.35) (2024-04-21)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.34](https://github.com/appium/appium/compare/@appium/test-support@3.0.33...@appium/test-support@3.0.34) (2024-04-16)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.33](https://github.com/appium/appium/compare/@appium/test-support@3.0.32...@appium/test-support@3.0.33) (2024-04-08)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.32](https://github.com/appium/appium/compare/@appium/test-support@3.0.31...@appium/test-support@3.0.32) (2024-02-13)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.31](https://github.com/appium/appium/compare/@appium/test-support@3.0.30...@appium/test-support@3.0.31) (2024-02-06)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.30](https://github.com/appium/appium/compare/@appium/test-support@3.0.29...@appium/test-support@3.0.30) (2024-01-03)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.29](https://github.com/appium/appium/compare/@appium/test-support@3.0.28...@appium/test-support@3.0.29) (2023-12-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **docutils:** remove `@appium/typedoc-plugin-appium` and all other uses of `typedoc` ([#19465](https://github.com/appium/appium/issues/19465)) ([7528fcf](https://github.com/appium/appium/commit/7528fcf890f79f4017f5e718bb1952bf907ee479))
|
||||
* **test-support:** update dependency sinon to v17 ([#19501](https://github.com/appium/appium/issues/19501)) ([0592bc5](https://github.com/appium/appium/commit/0592bc505fdec8ef0fdd19a6816a45e1e2887d25))
|
||||
|
||||
|
||||
|
||||
## [3.0.28](https://github.com/appium/appium/compare/@appium/test-support@3.0.27...@appium/test-support@3.0.28) (2023-12-04)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.27](https://github.com/appium/appium/compare/@appium/test-support@3.0.26...@appium/test-support@3.0.27) (2023-11-14)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.26](https://github.com/appium/appium/compare/@appium/test-support@3.0.25...@appium/test-support@3.0.26) (2023-10-19)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test-support:** update dependency sinon to v16.1.3 ([aaa7668](https://github.com/appium/appium/commit/aaa7668ae6d58f1ac6a5af957b9b214ee71c6a48))
|
||||
|
||||
|
||||
|
||||
## [3.0.25](https://github.com/appium/appium/compare/@appium/test-support@3.0.24...@appium/test-support@3.0.25) (2023-10-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test-support:** update dependency sinon to v16 ([#19161](https://github.com/appium/appium/issues/19161)) ([49b3434](https://github.com/appium/appium/commit/49b3434c2bc324b5dc9f8204242c12f04b5252af))
|
||||
* **test-support:** update dependency sinon to v16.1.0 ([126daec](https://github.com/appium/appium/commit/126daeca4e600b75cf37f9fc15a1b6e563058b3c))
|
||||
|
||||
|
||||
|
||||
## [3.0.24](https://github.com/appium/appium/compare/@appium/test-support@3.0.23...@appium/test-support@3.0.24) (2023-08-22)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.23](https://github.com/appium/appium/compare/@appium/test-support@3.0.22...@appium/test-support@3.0.23) (2023-08-21)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.22](https://github.com/appium/appium/compare/@appium/test-support@3.0.21...@appium/test-support@3.0.22) (2023-08-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test-support:** update dependency @colors/colors to v1.6.0 ([1358937](https://github.com/appium/appium/commit/1358937db2edf08ce1ebe3dff2f70ac6b07cd373))
|
||||
* **test-support:** update dependency sinon to v15.2.0 ([a21ae6a](https://github.com/appium/appium/commit/a21ae6ab2bcaba44ecdacae67076cf011b4e5ae8))
|
||||
|
||||
|
||||
|
||||
## [3.0.21](https://github.com/appium/appium/compare/@appium/test-support@3.0.20...@appium/test-support@3.0.21) (2023-07-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test-support:** update dependency sinon to v15.1.2 ([e5b569c](https://github.com/appium/appium/commit/e5b569c3a0a0545210f126822031420d236ad1f4))
|
||||
|
||||
|
||||
|
||||
## [3.0.20](https://github.com/appium/appium/compare/@appium/test-support@3.0.19...@appium/test-support@3.0.20) (2023-07-03)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.19](https://github.com/appium/appium/compare/@appium/test-support@3.0.18...@appium/test-support@3.0.19) (2023-06-29)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.18](https://github.com/appium/appium/compare/@appium/test-support@3.0.17...@appium/test-support@3.0.18) (2023-06-15)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.17](https://github.com/appium/appium/compare/@appium/test-support@3.0.16...@appium/test-support@3.0.17) (2023-06-14)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.16](https://github.com/appium/appium/compare/@appium/test-support@3.0.15...@appium/test-support@3.0.16) (2023-06-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test-support:** update dependency sinon to v15.1.0 ([4c61d53](https://github.com/appium/appium/commit/4c61d533b8f52131a637f5cd0b019375f85f075f))
|
||||
|
||||
|
||||
|
||||
## [3.0.15](https://github.com/appium/appium/compare/@appium/test-support@3.0.14...@appium/test-support@3.0.15) (2023-05-19)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.14](https://github.com/appium/appium/compare/@appium/test-support@3.0.13...@appium/test-support@3.0.14) (2023-05-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test-support:** update dependency sinon to v15.0.4 ([9ad7279](https://github.com/appium/appium/commit/9ad7279fa70d7198a8d02f0f206397cb4a830e1d))
|
||||
|
||||
|
||||
|
||||
## [3.0.13](https://github.com/appium/appium/compare/@appium/test-support@3.0.12...@appium/test-support@3.0.13) (2023-04-14)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.12](https://github.com/appium/appium/compare/@appium/test-support@3.0.11...@appium/test-support@3.0.12) (2023-04-10)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.11](https://github.com/appium/appium/compare/@appium/test-support@3.0.10...@appium/test-support@3.0.11) (2023-04-03)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.10](https://github.com/appium/appium/compare/@appium/test-support@3.0.9...@appium/test-support@3.0.10) (2023-03-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **test-support:** update dependency sinon to v15.0.2 ([f1a8ce0](https://github.com/appium/appium/commit/f1a8ce0bbac5a165ba5175c50d83668ec305b592))
|
||||
* **test-support:** update dependency sinon to v15.0.3 ([d774a84](https://github.com/appium/appium/commit/d774a8428a0f0c4ecbbc8124a855bda12821ae08))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.9](https://github.com/appium/appium/compare/@appium/test-support@3.0.8...@appium/test-support@3.0.9) (2023-03-08)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.8](https://github.com/appium/appium/compare/@appium/test-support@3.0.7...@appium/test-support@3.0.8) (2023-02-24)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.7](https://github.com/appium/appium/compare/@appium/test-support@3.0.6...@appium/test-support@3.0.7) (2023-02-09)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.6](https://github.com/appium/appium/compare/@appium/test-support@3.0.5...@appium/test-support@3.0.6) (2023-01-23)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.5](https://github.com/appium/appium/compare/@appium/test-support@3.0.4...@appium/test-support@3.0.5) (2023-01-13)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.4](https://github.com/appium/appium/compare/@appium/test-support@3.0.3...@appium/test-support@3.0.4) (2023-01-13)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.3](https://github.com/appium/appium/compare/@appium/test-support@3.0.2...@appium/test-support@3.0.3) (2023-01-13)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.2](https://github.com/appium/appium/compare/@appium/test-support@3.0.1...@appium/test-support@3.0.2) (2023-01-13)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [3.0.1](https://github.com/appium/appium/compare/@appium/test-support@3.0.0...@appium/test-support@3.0.1) (2022-12-21)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **test-support:** update dependency sinon to v15.0.1 ([5d0d4f5](https://github.com/appium/appium/commit/5d0d4f5a44dff362430159f97f8569a9be7e378d))
|
||||
|
||||
# [3.0.0](https://github.com/appium/appium/compare/@appium/test-support@2.0.2...@appium/test-support@3.0.0) (2022-12-14)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **test-support:** update dependency sinon to v14.0.2 ([01bcbd9](https://github.com/appium/appium/commit/01bcbd9f0da309b90cd3b760c30d885cb03e6728))
|
||||
- **test-support:** update dependency sinon to v15 ([ebcc1d2](https://github.com/appium/appium/commit/ebcc1d21509ed63fa0c225daf39ccc10bf67c3ad))
|
||||
|
||||
- chore!: set engines to minimum Node.js v14.17.0 ([a1dbe6c](https://github.com/appium/appium/commit/a1dbe6c43efe76604943a607d402f4c8b864d652))
|
||||
|
||||
### Features
|
||||
|
||||
- experimental support for typedoc generation ([4746080](https://github.com/appium/appium/commit/4746080e54ed8bb494cbc7c6ce83db503bf6bb52))
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
- Appium now supports version range `^14.17.0 || ^16.13.0 || >=18.0.0`
|
||||
|
||||
## [2.0.2](https://github.com/appium/appium/compare/@appium/test-support@2.0.1...@appium/test-support@2.0.2) (2022-10-14)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [2.0.1](https://github.com/appium/appium/compare/@appium/test-support@2.0.0...@appium/test-support@2.0.1) (2022-10-13)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
# [2.0.0](https://github.com/appium/appium/compare/@appium/test-support@1.5.0...@appium/test-support@2.0.0) (2022-09-07)
|
||||
|
||||
### chore
|
||||
|
||||
- **test-support:** remove driver/plugin-specific methods ([743c764](https://github.com/appium/appium/commit/743c764d5ea3211367fb2f338ecb5ec99af3ce86)), closes [#17398](https://github.com/appium/appium/issues/17398)
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
- **test-support:** This removes plugin/driver specific methods from `@appium/test-support`, and also removes the peer dep on `appium`.
|
||||
The methods can now be found in `@appium/plugin-test-support` and `@appium/driver-test-support`.
|
||||
|
||||
# [1.5.0](https://github.com/appium/appium/compare/@appium/test-support@1.4.1...@appium/test-support@1.5.0) (2022-08-10)
|
||||
|
||||
### Features
|
||||
|
||||
- **appium,base-driver,fake-driver,fake-plugin,test-support,types:** updateServer receives cliArgs param ([d4b9833](https://github.com/appium/appium/commit/d4b983328af21d1e5c27a91e438e7934eb152ab1)), closes [#17304](https://github.com/appium/appium/issues/17304)
|
||||
|
||||
## [1.4.1](https://github.com/appium/appium/compare/@appium/test-support@1.4.0...@appium/test-support@1.4.1) (2022-08-03)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **appium,base-driver,base-plugin,doctor,docutils,eslint-config-appium,execute-driver-plugin,fake-driver,fake-plugin,gulp-plugins,images-plugin,opencv,relaxed-caps-plugin,schema,support,test-support,types,universal-xml-plugin:** update engines ([d8d2382](https://github.com/appium/appium/commit/d8d2382327ba7b7db8a4d1cad987c0e60184c92d))
|
||||
|
||||
# [1.4.0](https://github.com/appium/appium/compare/@appium/test-support@1.3.22...@appium/test-support@1.4.0) (2022-07-28)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- moved type packages to deps of specific packages ([f9129df](https://github.com/appium/appium/commit/f9129dfee32fcc3f89ffcfa69fb83b7c2419c24f))
|
||||
|
||||
### Features
|
||||
|
||||
- **appium,base-driver,base-plugin,test-support,types:** move test fixtures into test-support ([70d88cb](https://github.com/appium/appium/commit/70d88cb86f28354efe313cc6be6a0afef20b38b3))
|
||||
|
||||
## [1.3.22](https://github.com/appium/appium/compare/@appium/test-support@1.3.21...@appium/test-support@1.3.22) (2022-06-04)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.21](https://github.com/appium/appium/compare/@appium/test-support@1.3.20...@appium/test-support@1.3.21) (2022-05-31)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.20](https://github.com/appium/appium/compare/@appium/test-support@1.3.19...@appium/test-support@1.3.20) (2022-05-31)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **appium:** fix extension autoinstall postinstall script ([3e2c05d](https://github.com/appium/appium/commit/3e2c05d8a290072484afde34fe5fd968618f6359)), closes [#16924](https://github.com/appium/appium/issues/16924)
|
||||
|
||||
## [1.3.19](https://github.com/appium/appium/compare/@appium/test-support@1.3.18...@appium/test-support@1.3.19) (2022-05-02)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.18](https://github.com/appium/appium/compare/@appium/test-support@1.3.17...@appium/test-support@1.3.18) (2022-04-20)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.17](https://github.com/appium/appium/compare/@appium/test-support@1.3.16...@appium/test-support@1.3.17) (2022-04-20)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.16](https://github.com/appium/appium/compare/@appium/test-support@1.3.15...@appium/test-support@1.3.16) (2022-04-20)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.15](https://github.com/appium/appium/compare/@appium/test-support@1.3.14...@appium/test-support@1.3.15) (2022-04-12)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.14](https://github.com/appium/appium/compare/@appium/test-support@1.3.13...@appium/test-support@1.3.14) (2022-04-07)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.13](https://github.com/appium/appium/compare/@appium/test-support@1.3.12...@appium/test-support@1.3.13) (2022-03-23)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.12](https://github.com/appium/appium/compare/@appium/test-support@1.3.11...@appium/test-support@1.3.12) (2022-03-22)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.11](https://github.com/appium/appium/compare/@appium/test-support@1.3.10...@appium/test-support@1.3.11) (2022-01-21)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.10](https://github.com/appium/appium/compare/@appium/test-support@1.3.9...@appium/test-support@1.3.10) (2022-01-11)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Switch colors package to a non-compomised repository ([#16317](https://github.com/appium/appium/issues/16317)) ([40a6f05](https://github.com/appium/appium/commit/40a6f054dca3d94fc88773af9c6336ba12ebfb81))
|
||||
|
||||
## [1.3.9](https://github.com/appium/appium/compare/@appium/test-support@1.3.8...@appium/test-support@1.3.9) (2021-11-19)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **test-support:** create cjs wrapper ([57f39c5](https://github.com/appium/appium/commit/57f39c54889401872759bfa771f14e54020b3045))
|
||||
|
||||
## [1.3.8](https://github.com/appium/appium/compare/@appium/test-support@1.3.7...@appium/test-support@1.3.8) (2021-11-15)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.7](https://github.com/appium/appium/compare/@appium/test-support@1.3.6...@appium/test-support@1.3.7) (2021-11-09)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.6](https://github.com/appium/appium/compare/@appium/test-support@1.3.5...@appium/test-support@1.3.6) (2021-09-14)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.5](https://github.com/appium/appium/compare/@appium/test-support@1.3.4...@appium/test-support@1.3.5) (2021-09-14)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
|
||||
## [1.3.4](https://github.com/appium/appium/compare/@appium/test-support@1.3.4-rc.0...@appium/test-support@1.3.4) (2021-08-16)
|
||||
|
||||
# 2.0.0-beta (2021-08-13)
|
||||
|
||||
**Note:** Version bump only for package @appium/test-support
|
||||
@@ -1,63 +0,0 @@
|
||||
# @appium/test-support
|
||||
|
||||
> ⚠️ **DEPRECATED**: This module is deprecated. Use `sinon` directly instead (e.g., `sinon.createSandbox()` with Mocha `beforeEach`/`afterEach` hooks).
|
||||
|
||||
> A collection of test utility libs used across Appium packages
|
||||
|
||||
[](https://npmjs.org/package/@appium/test-support)
|
||||
[](https://npmjs.org/package/@appium/test-support)
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
npm install @appium/test-support --save-dev
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### withSandbox
|
||||
|
||||
Use when mixing up `sinon` APIs (mocks, spies, stubs).
|
||||
|
||||
```js
|
||||
import { withSandbox } from '@appium/test-support';
|
||||
|
||||
let api = {
|
||||
abc: () => { return 'abc'; }
|
||||
};
|
||||
|
||||
describe('MyTest', withSandbox({mocks: {api}}, (S) => {
|
||||
it('stubbing api, stubbing dog', () => {
|
||||
S.mocks.api.expects('abc').once().returns('efg');
|
||||
let dog = { bark: () => { return 'ouaf!'; } };
|
||||
S.sandbox.stub(dog, 'bark').returns('miaou');
|
||||
api.abc().should.equal('efg');
|
||||
dog.bark().should.equal('miaou');
|
||||
S.verify();
|
||||
});
|
||||
}));
|
||||
```
|
||||
|
||||
### withMocks
|
||||
|
||||
When using mainly stubs.
|
||||
|
||||
```js
|
||||
import { withMocks } from '@appium/test-support';
|
||||
|
||||
let api = {
|
||||
abc: () => { return 'abc'; }
|
||||
};
|
||||
|
||||
describe('withMocks', withMocks({api}, (mocks) => {
|
||||
it('should mock api', () => {
|
||||
mocks.api.expects('abc').once().returns('efg');
|
||||
api.abc().should.equal('efg');
|
||||
mocks.verify();
|
||||
});
|
||||
}));
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Apache-2.0
|
||||
@@ -1,42 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ${START_EMU} != "1" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Fail fast if emulator process cannot start
|
||||
pgrep -nf avd || exit 1
|
||||
|
||||
: ${EMU_STARTUP_TIMEOUT:=360}
|
||||
|
||||
# make sure the emulator is ready
|
||||
adb wait-for-device get-serialno
|
||||
secondsStarted=$(date +%s)
|
||||
while [[ $(( $(date +%s) - secondsStarted )) -lt $EMU_STARTUP_TIMEOUT ]]; do
|
||||
pstat=$(adb shell ps)
|
||||
if ! [[ $pstat =~ "root " ]]; then
|
||||
# In recent APIs running `ps` without `-A` only returns
|
||||
# processes belonging to the current user (in this case `shell`)
|
||||
pstat=$(adb shell ps -A)
|
||||
fi
|
||||
|
||||
if [[ $pstat =~ "com.android.systemui" ]]; then
|
||||
echo "System UI process is running. Checking services availability"
|
||||
if adb shell "ime list && pm get-install-location && echo PASS" | grep -q "PASS"; then
|
||||
break
|
||||
fi
|
||||
fi
|
||||
|
||||
sleep 5
|
||||
secondsElapsed=$(( $(date +%s) - secondsStarted ))
|
||||
secondsLeft=$(( EMU_STARTUP_TIMEOUT - secondsElapsed ))
|
||||
echo "Waiting until emulator finishes services startup; ${secondsElapsed}s elapsed; ${secondsLeft}s left"
|
||||
done
|
||||
bootDuration=$(( $(date +%s) - secondsStarted ))
|
||||
if [[ $bootDuration -ge $EMU_STARTUP_TIMEOUT ]]; then
|
||||
echo "Emulator has failed to fully start within ${EMU_STARTUP_TIMEOUT}s"
|
||||
exit 1
|
||||
fi
|
||||
echo "Emulator booting took ${bootDuration}s"
|
||||
|
||||
adb shell input keyevent 82
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ev
|
||||
|
||||
if [ ${START_EMU} = "1" ]; then
|
||||
emuTag=""
|
||||
if [ -n "$ANDROID_EMU_TAG" ]; then
|
||||
emuTag="--tag $ANDROID_EMU_TAG"
|
||||
fi
|
||||
echo no | android create avd --force -n ${ANDROID_EMU_NAME} -t ${ANDROID_EMU_TARGET} --abi ${ANDROID_EMU_ABI} ${tag}
|
||||
emulator -avd ${ANDROID_EMU_NAME} -no-audio -no-window &
|
||||
fi
|
||||
|
||||
exit 0;
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = require('./build/lib');
|
||||
@@ -1,5 +0,0 @@
|
||||
// this just needs to be imported, for the functionality to be injected
|
||||
import './unhandled-rejection';
|
||||
|
||||
export {withMocks, verifyMocks} from './mock-utils';
|
||||
export {withSandbox, verifySandbox} from './sandbox-utils';
|
||||
@@ -1,5 +0,0 @@
|
||||
import {logger} from '@appium/support';
|
||||
|
||||
const log = logger.getLogger('AppiumTestSupport');
|
||||
|
||||
export default log;
|
||||
@@ -1,104 +0,0 @@
|
||||
import sinon from 'sinon';
|
||||
|
||||
/**
|
||||
* @template {Record<string, any>} [Mocks=Record<string, any>]
|
||||
* @extends {Mocks}
|
||||
* @deprecated Use `sinon.createSandbox()` and `sandbox.mock()` directly instead.
|
||||
*/
|
||||
export class MockStore {
|
||||
/**
|
||||
* Temporary sandbox; will be `undefined` until `beforeEach` is called
|
||||
* @type {SinonSandbox|undefined}
|
||||
*/
|
||||
sandbox;
|
||||
|
||||
/**
|
||||
* Original k/v pair provided to `createMocks`
|
||||
* @type {Mocks|undefined}
|
||||
*/
|
||||
#mocks;
|
||||
|
||||
/**
|
||||
* Uses a sandbox if one is provided
|
||||
* @param {SinonSandbox} [sandbox]
|
||||
*/
|
||||
constructor(sandbox) {
|
||||
this.sandbox = sandbox;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Mocks} mockDefs
|
||||
*/
|
||||
createMocks(mockDefs) {
|
||||
if (this.#mocks) {
|
||||
throw new ReferenceError('Cannot create mocks twice; call `reset()` first.');
|
||||
}
|
||||
this.sandbox = this.sandbox ?? sinon.createSandbox();
|
||||
for (const [key, value] of Object.entries(mockDefs)) {
|
||||
Reflect.set(this, key, this.sandbox.mock(value));
|
||||
}
|
||||
this.#mocks = mockDefs;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls {@linkcode SinonSandbox.verify} on the `sandbox` prop, if it exists
|
||||
*/
|
||||
verify() {
|
||||
if (!this.sandbox) {
|
||||
throw new ReferenceError(
|
||||
'Cannot verify mocks before they are created; call `createMocks()` first',
|
||||
);
|
||||
}
|
||||
this.sandbox.verify();
|
||||
}
|
||||
|
||||
reset() {
|
||||
for (const key of Object.keys(this.#mocks ?? {})) {
|
||||
Reflect.deleteProperty(this, key);
|
||||
}
|
||||
this.sandbox?.restore();
|
||||
this.#mocks = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a function which creates Mocha "before each" and "after each" hooks to
|
||||
* automatically mock (and un-mock) the mocks provided by `libs`.
|
||||
*
|
||||
* The values of `libs` are provided directly to {@linkcode SinonSandbox.mock}.
|
||||
*
|
||||
* _Synchronously_ calls `fn` with the {@linkcode MockStore} after hooks have been created, but not before they have been run.
|
||||
*
|
||||
* @deprecated Use `sinon.createSandbox()` directly with Mocha `beforeEach`/`afterEach` hooks instead.
|
||||
* @param {Record<string|symbol,any>} mockDefs
|
||||
* @param {(mocks: MockStore<Record<string, any>>) => void} fn
|
||||
* @returns {() => void}
|
||||
*/
|
||||
export function withMocks(mockDefs, fn) {
|
||||
return () => {
|
||||
const mocks = new MockStore();
|
||||
// eslint-disable-next-line mocha/no-top-level-hooks
|
||||
beforeEach(function withMocksBeforeEach() {
|
||||
mocks.createMocks(mockDefs);
|
||||
});
|
||||
// eslint-disable-next-line mocha/no-top-level-hooks
|
||||
afterEach(function withMocksAfterEach() {
|
||||
mocks.reset();
|
||||
});
|
||||
fn(mocks);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience function for calling `mocks.verify()`.
|
||||
* @deprecated Call `sandbox.verify()` directly on your sinon sandbox instead.
|
||||
* @param {MockStore<Record<string, any>>} mocks - Returned by callback from {@linkcode withMocks}
|
||||
*/
|
||||
export function verifyMocks(mocks) {
|
||||
mocks.verify();
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef {import('sinon').SinonSandbox} SinonSandbox
|
||||
*/
|
||||
@@ -1,88 +0,0 @@
|
||||
import {util} from '@appium/support';
|
||||
import sinon from 'sinon';
|
||||
import {MockStore} from './mock-utils';
|
||||
|
||||
/**
|
||||
* @template {Record<string, any>} [Mocks=Record<string, any>]
|
||||
* @deprecated Use `sinon.createSandbox()` directly instead.
|
||||
*/
|
||||
export class SandboxStore {
|
||||
/** @type {MockStore<Record<string, any>>|undefined} */
|
||||
mocks;
|
||||
|
||||
/** @type {SinonSandbox|undefined} */
|
||||
sandbox;
|
||||
|
||||
/**
|
||||
* Uses a sandbox if one is provided
|
||||
* @param {SinonSandbox} [sandbox]
|
||||
*/
|
||||
constructor(sandbox) {
|
||||
this.sandbox = sandbox;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Mocks} mocks
|
||||
*/
|
||||
createSandbox(mocks = /** @type {Mocks} */ ({})) {
|
||||
this.sandbox = this.sandbox ?? sinon.createSandbox();
|
||||
this.mocks = new MockStore(this.sandbox).createMocks(mocks);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls {@linkcode SinonSandbox.verify} on the `sandbox` prop, if it exists
|
||||
*/
|
||||
verify() {
|
||||
if (!this.sandbox) {
|
||||
throw new ReferenceError(
|
||||
'Cannot verify mocks before they are created; call `createMocks()` first',
|
||||
);
|
||||
}
|
||||
this.sandbox.verify();
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.mocks?.reset();
|
||||
delete this.sandbox;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @template {Record<string,any>|{mocks: Record<string,any>}} Mocks
|
||||
* @deprecated Use `sinon.createSandbox()` directly with Mocha `beforeEach`/`afterEach` hooks instead.
|
||||
* @param {Mocks} mockDefs
|
||||
* @param {(sandboxStore: SandboxStore<Record<string, any>>) => void} fn
|
||||
* @returns {() => void}
|
||||
*/
|
||||
export function withSandbox(mockDefs, fn) {
|
||||
// backwards-compat
|
||||
if (!util.isEmpty(mockDefs.mocks)) {
|
||||
mockDefs = mockDefs.mocks;
|
||||
}
|
||||
return () => {
|
||||
/** @type {SandboxStore<Record<string, any>>} */
|
||||
const sbx = new SandboxStore();
|
||||
// eslint-disable-next-line mocha/no-top-level-hooks
|
||||
beforeEach(function beforeEach() {
|
||||
sbx.createSandbox(mockDefs);
|
||||
});
|
||||
// eslint-disable-next-line mocha/no-top-level-hooks
|
||||
afterEach(function afterEach() {
|
||||
sbx.reset();
|
||||
});
|
||||
fn(sbx);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience function for calling {@linkcode SandboxStore.verify}.
|
||||
* @deprecated Call `sandbox.verify()` directly on your sinon sandbox instead.
|
||||
* @param {SandboxStore<Record<string, any>>|MockStore<Record<string, any>>} sbxOrMocks
|
||||
*/
|
||||
export function verifySandbox(sbxOrMocks) {
|
||||
sbxOrMocks.verify();
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef {import('sinon').SinonSandbox} SinonSandbox
|
||||
*/
|
||||
@@ -1,7 +0,0 @@
|
||||
import loudRejection from 'loud-rejection';
|
||||
|
||||
// in a testing environment (environment variable is set in `appium-gulp-utils`)
|
||||
// make sure unhandled promise rejections are made visible
|
||||
if (process.env._TESTING) {
|
||||
loudRejection();
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
{
|
||||
"name": "@appium/test-support",
|
||||
"version": "4.1.5",
|
||||
"description": "A collection of test utilities used across Appium packages",
|
||||
"deprecated": "This module is deprecated. Use sinon directly instead (e.g., sinon.createSandbox() with Mocha hooks).",
|
||||
"keywords": [
|
||||
"automation",
|
||||
"javascript",
|
||||
"selenium",
|
||||
"webdriver",
|
||||
"ios",
|
||||
"android",
|
||||
"firefoxos",
|
||||
"testing"
|
||||
],
|
||||
"homepage": "https://appium.io",
|
||||
"bugs": {
|
||||
"url": "https://github.com/appium/appium/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/appium/appium.git",
|
||||
"directory": "packages/test-support"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"author": "https://github.com/appium",
|
||||
"types": "./build/lib/index.d.ts",
|
||||
"bin": {
|
||||
"android-emu-travis-post": "./bin/android-emu-travis-post.sh",
|
||||
"android-emu-travis-pre": "./bin/android-emu-travis-pre.sh"
|
||||
},
|
||||
"directories": {
|
||||
"lib": "lib"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"bin",
|
||||
"lib",
|
||||
"build",
|
||||
"tsconfig.json",
|
||||
"!build/tsconfig.tsbuildinfo",
|
||||
"!build/test"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "npm run test:unit",
|
||||
"test:smoke": "node ./index.js",
|
||||
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@appium/support": "7.2.3",
|
||||
"@colors/colors": "1.6.0",
|
||||
"loud-rejection": "2.2.0",
|
||||
"sinon": "22.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
||||
"npm": ">=10"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "f7b20335eab4022e5cbbb627ec86866a994444f8"
|
||||
}
|
||||
Binary file not shown.
@@ -1,49 +0,0 @@
|
||||
import {withSandbox, verifySandbox} from '../../lib';
|
||||
|
||||
let funcs = {
|
||||
abc: () => 'abc',
|
||||
};
|
||||
|
||||
describe('sandbox-utils', function () {
|
||||
let expect;
|
||||
|
||||
before(async function () {
|
||||
const chai = await import('chai');
|
||||
chai.should();
|
||||
expect = chai.expect;
|
||||
});
|
||||
|
||||
describe(
|
||||
'withSandbox',
|
||||
withSandbox({mocks: {funcs}}, (S) => {
|
||||
it('should create a sandbox and mocks', function () {
|
||||
expect(S.sandbox).to.exist;
|
||||
expect(S.mocks.funcs).to.exist;
|
||||
funcs.abc().should.equal('abc');
|
||||
S.mocks.funcs.expects('abc').once().returns('efg');
|
||||
funcs.abc().should.equal('efg');
|
||||
S.sandbox.verify();
|
||||
});
|
||||
|
||||
it('should be back to normal', function () {
|
||||
funcs.abc().should.equal('abc');
|
||||
});
|
||||
|
||||
it('S.verify', function () {
|
||||
expect(S.sandbox).to.exist;
|
||||
expect(S.mocks.funcs).to.exist;
|
||||
S.mocks.funcs.expects('abc').once().returns('efg');
|
||||
funcs.abc().should.equal('efg');
|
||||
S.verify();
|
||||
});
|
||||
|
||||
it('verifySandbox', function () {
|
||||
expect(S.sandbox).to.exist;
|
||||
expect(S.mocks.funcs).to.exist;
|
||||
S.mocks.funcs.expects('abc').once().returns('efg');
|
||||
funcs.abc().should.equal('efg');
|
||||
verifySandbox(S);
|
||||
});
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"extends": "@appium/tsconfig/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"rootDir": ".",
|
||||
"outDir": "build",
|
||||
"checkJs": true,
|
||||
"paths": {
|
||||
"@appium/types": ["../types"],
|
||||
"@appium/support": ["../support"]
|
||||
},
|
||||
"types": ["mocha", "chai", "sinon", "chai-as-promised"]
|
||||
},
|
||||
"include": ["./lib"],
|
||||
"references": [{"path": "../types"}, {"path": "../support"}]
|
||||
}
|
||||
@@ -35,9 +35,6 @@
|
||||
{
|
||||
"path": "packages/base-plugin"
|
||||
},
|
||||
{
|
||||
"path": "packages/test-support"
|
||||
},
|
||||
{
|
||||
"path": "packages/fake-plugin"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user