Skip to content

Commit 33fdf44

Browse files
dons20Keno
andauthored
Update service to ESM and WDIO v9 (#126)
* Updated project to ESM only Updated to WDIO v8 Updated to Node v18 * Additional config updates Switch to jsconfig for now Updated necessary types for spec files Specify browserVersion for wdio conf * Reverted manual version change Replaced import all with default import Removed unnecessary export * Updates to dependencies and tsconfig * Updated js src files to ts Removed older babel references, configs Added types in place of JSDoc types * Removed additional babel references Update files to correct line-endings * More TS Changes * Updated most of test directory to ts Updated deps Added temporary file for further run arg types and comments * Updated remaining test files with TS Added mocks where needed Updated tsconfigs to handle build vs development type-checking Updated imports where applicable Other minor improvements * WIP change to update tsconfig layout * Fixed some issues preventing unit tests to run Updated more configs Added some dev dependencies * Address most of the feedback * Update onPrepare to promise syntax instead of async/await * Some fixes to failing tests More usage of sandbox instead of direct stubs * Fixed tests in launcherSpec Removed console log Fixed some warnings and errors displayed in some test contexts * Fixed dockerEventsSpec * Fixed all test cases Updated to latest dependencies * Updated package-lock * * Updated CJS entry file * Removed extra md file * Migrated to vitest Updated some test cases to fix type errors Updated Github CI config Updated node version to latest v20 lts * Fixed Eslint issues Cleaned up some older references * Removed abstraction on Ping file * Updated health check URL to work across platforms moby/libnetwork#2348 (comment) * Updated baseUrl for integration config * Added CI check to conditionally use different URL for host * Troubleshooting~1 * Troubleshooting~2 * Troubleshooting~3 * Troubleshooting~4 * Troubleshooting~5 * Troubleshooting~6 * Troubleshooting~6 * Troubleshooting~7 * Troubleshooting~8 * Troubleshooting~9 * Troubleshooting~10 * Troubleshooting~11 * Troubleshooting~12 * Troubleshooting~13 * Troubleshooting~14 * Troubleshooting~14 * Troubleshooting~15 * Cleanup~1 * Cleanup~2 * Cleanup~3 * Cleanup~4 * Cleanup~5 * Troubleshooting~16 * Troubleshooting~17 * Troubleshooting~18 * Troubleshooting~19 * Troubleshooting~20 * Troubleshooting~21 * Troubleshooting~22 * Troubleshooting~23 * Troubleshooting~24 * Remaining Cleanup~1 --------- Co-authored-by: Keno <[email protected]>
1 parent 8d8961b commit 33fdf44

76 files changed

Lines changed: 9438 additions & 17985 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
node-version: ['14']
15+
node-version: ['20.x']
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
- name: Use Node.js v${{ matrix.node-version }}
19-
uses: actions/setup-node@v4
19+
uses: actions/setup-node@v6
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222
- name: Install dependencies

.github/workflows/expense.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
authorize:
4040
runs-on: ubuntu-latest
4141
steps:
42-
- uses: octokit/request-action@v2.1.9
42+
- uses: octokit/request-action@v2.4.0
4343
with:
4444
route: GET /orgs/:organisation/teams/:team/memberships/${{ github.actor }}
4545
team: technical-steering-committee

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/node_modules/
44
/npm-debug.log
55
/.nyc_output/
6-
/coverage/
6+
**/coverage/
77
/docker-log.txt
88
/lib/
9+
*.tsbuildinfo
10+
*.cid

.mocharc.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
module.exports = {
3+
extensions: ['ts'],
4+
spec: 'test/unit/**/*.ts',
5+
require: ['tsx'],
6+
import: ['tsx/esm'],
7+
exit: true,
8+
timeout: 10000,
9+
}

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ PULL_REQUEST_TEMPLATE.md
77
.editorconfig
88
.travis.yml
99
docker-log.txt
10-
babel.config.js
1110
.eslintrc.json
1211
.nycrc
1312
.codeclimate.yml

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14.21.3
1+
v20.19.5

.nycrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"reporter": ["lcov", "text-summary"],
3-
"include": ["src/**/*.js", "index.js"]
3+
"include": ["src/**/*.ts"]
44
}

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tabWidth": 4,
3+
"useTabs": false,
4+
"singleQuote": true,
5+
"printWidth": 120
6+
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ Instructions on how to install WebdriverIO can be found [here](https://webdriver
3030
By default, Google Chrome, Firefox and PhantomJS are available when installed on the host system.
3131
In order to use the service you need to add `docker` to your service array:
3232

33-
```javascript
34-
// wdio.conf.js
35-
exports.config = {
33+
```typescript
34+
// wdio.conf.ts
35+
export const config: WebdriverIO.Config = {
3636
// ...
3737
services: ['docker'],
3838
// ...

0 commit comments

Comments
 (0)