wdio-safaridriver-service
Advanced tools
Comparing version
@@ -25,3 +25,3 @@ "use strict"; | ||
const args = this._options.args || []; | ||
const port = this._config.port || DEFAULT_PORT; | ||
const port = this._options.port || this._config.port || DEFAULT_PORT; | ||
if (!args.find((arg) => arg.startsWith('-p'))) { | ||
@@ -28,0 +28,0 @@ args.push(`-p ${port}`); |
export interface ServiceOptions { | ||
/** | ||
* The port on which the driver should run on. | ||
*/ | ||
port?: number; | ||
/** | ||
* The path where the output of the Safaridriver server should | ||
@@ -4,0 +8,0 @@ * be stored (uses the `config.outputDir` by default when not set). |
{ | ||
"name": "wdio-safaridriver-service", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "WebdriverIO service to start & stop Safaridriver", | ||
@@ -39,25 +39,25 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@types/node": "^17.0.21", | ||
"@typescript-eslint/eslint-plugin": "^5.14.0", | ||
"@typescript-eslint/parser": "^5.14.0", | ||
"@wdio/cli": "^7.18.1", | ||
"@wdio/local-runner": "^7.18.1", | ||
"@wdio/mocha-framework": "^7.18.0", | ||
"@wdio/spec-reporter": "^7.18.0", | ||
"@wdio/types": "^7.17.3", | ||
"eslint": "^8.10.0", | ||
"@types/node": "^18.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.30.0", | ||
"@typescript-eslint/parser": "^5.30.0", | ||
"@wdio/cli": "^7.20.5", | ||
"@wdio/local-runner": "^7.20.5", | ||
"@wdio/mocha-framework": "^7.20.3", | ||
"@wdio/spec-reporter": "^7.20.3", | ||
"@wdio/types": "^7.20.3", | ||
"eslint": "^8.18.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-airbnb-base-typescript": "^1.0.0", | ||
"eslint-import-resolver-typescript": "^2.5.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jest": "^26.1.1", | ||
"eslint-config-airbnb-base-typescript": "^1.1.0", | ||
"eslint-import-resolver-typescript": "^3.1.1", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^26.5.3", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-wdio": "^7.18.1", | ||
"husky": "^7.0.4", | ||
"eslint-plugin-wdio": "^7.19.4", | ||
"husky": "^8.0.1", | ||
"npm-run-all": "^4.1.5", | ||
"release-it": "^14.12.5", | ||
"release-it": "^15.1.0", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.7.0", | ||
"typescript": "^4.6.2" | ||
"ts-node": "^10.8.1", | ||
"typescript": "^4.7.4" | ||
}, | ||
@@ -74,3 +74,3 @@ "contributors": [ | ||
"@wdio/logger": "^7.19.0", | ||
"fs-extra": "^10.0.1", | ||
"fs-extra": "^10.1.0", | ||
"split2": "^4.1.0", | ||
@@ -77,0 +77,0 @@ "tcp-port-used": "^1.0.2" |
@@ -79,2 +79,8 @@ # WDIO SafariDriver Service [](https://github.com/webdriverio-community/wdio-safaridriver-service/actions/workflows/ci.yml) | ||
### `port` | ||
The port on which the driver should run on. | ||
Example: `4444` | ||
Type: `number` | ||
### `args` | ||
@@ -81,0 +87,0 @@ |
@@ -1,2 +0,2 @@ | ||
// eslint-disable-next-line node/no-unpublished-import | ||
import path from 'node:path' | ||
import type { Options } from '@wdio/types' | ||
@@ -29,3 +29,3 @@ | ||
transpileOnly: true, | ||
project: 'test/tsconfig.json' | ||
project: path.join(__dirname, '/tsconfig.json') | ||
} | ||
@@ -84,3 +84,4 @@ // tsconfig-paths is only used if "tsConfigPathsOpts" are provided, if you | ||
capabilities: [{ | ||
browserName: 'safari' | ||
browserName: 'safari', | ||
port: 4567 | ||
}], | ||
@@ -134,3 +135,5 @@ // | ||
// commands. Instead, they hook themselves up into the test process. | ||
services: ['safaridriver'], | ||
services: [ | ||
['safaridriver', { port: 4567 }] | ||
], | ||
// | ||
@@ -137,0 +140,0 @@ // Framework you want to run your specs with. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
37236
1.14%491
1.45%106
6%2
-50%Updated