Skip to content
Open
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
27 changes: 8 additions & 19 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,37 +1,26 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"./node_modules/kcd-scripts/eslint.js",
"plugin:import/typescript"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "*/**/tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"ignorePatterns": "wdio.conf.*",
"rules": {
"babel/new-cap": "off",
"func-names": "off",
"babel/no-unused-expressions": "off",
"prefer-arrow-callback": "off",
"testing-library/no-await-sync-query": "off",
"testing-library/no-dom-import": "off",
"testing-library/prefer-screen-queries": "off",
"no-undef": "off",
"no-use-before-define": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"]
"project": "tsconfig.json"
},
"overrides": [
{
"files": ["wdio.conf.js", "*/**/*.e2e.*"],
"files": ["test/**/*"],
"rules": {
"max-lines-per-function": "off"
"max-lines-per-function": "off",
// See https://github.com/webdriverio/webdriverio/issues/14552
"@typescript-eslint/no-floating-promises": "off"
},
"globals": {
"browser": "readonly"
},
"parserOptions": {
"project": "test/tsconfig.json"
}
}
]
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/webdriverio-testing-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [12, 14]
node: [20, 22, 24]
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
- name: npm install and validate
run: |
export CHROMEDRIVER_VERSION="$(chromedriver --version | awk '{print $2}')"
npm install
npm run validate
npm run build
npm run lint
npm run test
npm run typecheck
# npm run validate
env:
CI: true

Expand Down
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": false
"bracketSpacing": true
}
46 changes: 21 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@
"build:cjs": "tsc -p tsconfig.build.json",
"build:esm": "tsc -p tsconfig.esm.json",
"lint": "kcd-scripts lint",
"format": "kcd-scripts format",
"test:unit": "kcd-scripts test --no-watch --config=jest.config.js",
"validate": "kcd-scripts validate build,lint,test,typecheck",
"test:puppeteer": "wdio wdio.conf.js",
"test:selenium-standalone": "wdio wdio.conf.selenium-standalone.js",
"test:chromedriver": "wdio wdio.conf.chromedriver.js",
"test:geckodriver": "wdio wdio.conf.geckodriver.js",
"test": "npm-run-all test:puppeteer test:selenium-standalone test:chromedriver test:geckodriver",
"test:bidi": "wdio wdio.conf.js",
"test:classic": "wdio wdio.conf.classic.js",
"test": "npm-run-all -s test:bidi test:classic",
"semantic-release": "semantic-release",
"typecheck:async": "tsc -p ./test/async/tsconfig.json",
"typecheck:sync": "tsc -p ./test/sync/tsconfig.json",
"typecheck:test": "tsc -p test/tsconfig.json --noEmit",
"typecheck:build": "npm run build:cjs -- --noEmit && npm run build:esm -- --noEmit",
"typecheck": "npm-run-all typecheck:build typecheck:**",
"prepare": "selenium-standalone install --drivers.chrome.version=${CHROMEDRIVER_VERSION:-latest} --drivers.gecko.version=${GECKODRIVER_VERSION:-latest}"
"typecheck": "npm-run-all typecheck:build typecheck:test"
},
"files": [
"dist"
Expand All @@ -33,31 +30,24 @@
"license": "ISC",
"dependencies": {
"@babel/runtime": "^7.4.3",
"@testing-library/dom": "^8.17.1",
"@testing-library/dom": "^10.4.1",
"simmerjs": "^0.5.6"
},
"peerDependencies": {
"webdriverio": "*"
},
"devDependencies": {
"@types/simmerjs": "^0.5.1",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@typescript-eslint/parser": "^4.14.0",
"@wdio/cli": "^7.19.0",
"@wdio/local-runner": "^7.19.0",
"@wdio/mocha-framework": "^7.19.0",
"@wdio/selenium-standalone-service": "^7.19.0",
"@wdio/spec-reporter": "^7.19.0",
"@wdio/sync": "^7.19.0",
"eslint": "^7.6.0",
"geckodriver": "^3.2.0",
"kcd-scripts": "^11.1.0",
"@wdio/cli": "^9.18.4",
"@wdio/local-runner": "^9.18.4",
"@wdio/mocha-framework": "^9.18.0",
"@wdio/spec-reporter": "^9.18.0",
"@wdio/types": "^9.16.2",
"geckodriver": "^5.0.0",
"kcd-scripts": "^16.0.0",
"npm-run-all": "^4.1.5",
"semantic-release": "^17.0.2",
"ts-node": "^9.1.1",
"typescript": "^4.4.2",
"wdio-chromedriver-service": "^7.3.2",
"wdio-geckodriver-service": "^2.0.0"
"typescript": "^5.8.3"
},
"repository": {
"type": "git",
Expand All @@ -71,5 +61,11 @@
},
"publishConfig": {
"access": "public"
},
"overrides": {
"eslint-config-kentcdodds": {
"typescript":"5.8.3",
"eslint-plugin-jest-dom": "5.5.0"
}
}
}
Loading