Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update service to ESM and WDIO v8 #126

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
lib
*.json
nginx.conf
index.html
*.md
31 changes: 31 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* eslint-env node */
module.exports = {
env: {
es6: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
rules: {
indent: ['error', 4],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-console': [0],
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
globals: {
describe: true,
context: true,
it: true,
before: true,
beforeEach: true,
after: true,
afterEach: true,
},
};
41 changes: 0 additions & 41 deletions .eslintrc.json

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/node_modules/
/npm-debug.log
/.nyc_output/
/coverage/
**/coverage/
/docker-log.txt
/lib/
*.tsbuildinfo
*.cid
9 changes: 9 additions & 0 deletions .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
// loader: ["ts-node/esm"],
extensions: ["ts"],
spec: "test/unit/**/*",
require: ["tsx"],
import: ["tsx/esm"],
exit: true,
timeout: 10000,
};
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ PULL_REQUEST_TEMPLATE.md
.editorconfig
.travis.yml
docker-log.txt
babel.config.js
.eslintrc.json
.nycrc
.codeclimate.yml
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14.21.3
v20.11.0
2 changes: 1 addition & 1 deletion .nycrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"reporter": ["lcov", "text-summary"],
"include": ["src/**/*.js", "index.js"]
"include": ["src/**/*.ts"]
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"tabWidth": 4,
"useTabs": false,
"singleQuote": true,
"printWidth": 120
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ Instructions on how to install WebdriverIO can be found [here](https://webdriver
By default, Google Chrome, Firefox and PhantomJS are available when installed on the host system.
In order to use the service you need to add `docker` to your service array:

```javascript
// wdio.conf.js
exports.config = {
```typescript
// wdio.conf.ts
export const config: WebdriverIO.Config = {
// ...
services: ['docker'],
// ...
Expand Down
24 changes: 0 additions & 24 deletions babel.config.js

This file was deleted.

4 changes: 0 additions & 4 deletions index.js

This file was deleted.

Loading