From eb99c1571486f66cae42c417943b6e70f15ec582 Mon Sep 17 00:00:00 2001 From: Stephen Mathieson <571265+stephenmathieson@users.noreply.github.com> Date: Mon, 10 Jul 2023 11:54:36 -0400 Subject: [PATCH] build: Lint and format all files (#760) --- .dependabot/config.yml | 70 +++++----- .github/ISSUE_TEMPLATE/possible-bug.yml | 2 +- .github/axe-linter.yml | 2 +- .github/workflows/create-release.yml | 4 +- .github/workflows/sync-master-develop.yml | 2 +- CHANGELOG.md | 78 +++--------- axe_core_test/axe-core-version.test.js | 5 +- package.json | 4 +- packages/cli/CHANGELOG.md | 56 ++------ packages/cli/src/testutils/axe-core@2.5.0.js | 120 ++++++++---------- packages/playwright/CHANGELOG.md | 52 ++------ packages/playwright/example.js | 2 +- packages/playwright/src/index.ts | 2 +- .../playwright/test/axe-playwright.spec.ts | 2 +- packages/playwright/test/esmTest.mjs | 2 +- packages/puppeteer/CHANGELOG.md | 49 ++----- packages/puppeteer/example.js | 2 +- packages/puppeteer/src/utils.ts | 2 +- packages/puppeteer/test/axe-puppeteer.spec.ts | 7 +- packages/puppeteer/test/esmTest.mjs | 3 +- packages/react/.babelrc | 8 +- packages/react/CHANGELOG.md | 45 +------ packages/react/esmTest.mjs | 2 +- packages/react/examples/shadow-dom/.babelrc | 2 +- .../react/examples/shadow-dom/CHANGELOG.md | 31 +---- packages/reporter-earl/CHANGELOG.md | 42 +----- packages/reporter-earl/esmTest.mjs | 2 +- packages/reporter-earl/src/axeResultToEarl.ts | 52 ++++---- packages/reporter-earl/src/testResult.ts | 18 ++- packages/webdriverio/CHANGELOG.md | 57 ++------- packages/webdriverio/example.js | 2 +- packages/webdriverio/test/esmTest.mjs | 7 +- packages/webdriverjs/CHANGELOG.md | 52 ++------ packages/webdriverjs/README.md | 2 +- packages/webdriverjs/example.js | 2 +- packages/webdriverjs/test/esmTest.mjs | 2 +- packages/webdriverjs/test/test-utils.ts | 8 +- 37 files changed, 242 insertions(+), 558 deletions(-) diff --git a/.dependabot/config.yml b/.dependabot/config.yml index 1836d82b..5dfd7573 100644 --- a/.dependabot/config.yml +++ b/.dependabot/config.yml @@ -1,58 +1,58 @@ version: 1 update_configs: - - package_manager: "javascript" - directory: "/" - update_schedule: "weekly" + - package_manager: 'javascript' + directory: '/' + update_schedule: 'weekly' default_labels: - - "axe_api_deps_bot" + - 'axe_api_deps_bot' allowed_updates: - match: - update_type: "security" - - package_manager: "javascript" - directory: "/axe_core_test" - update_schedule: "weekly" + update_type: 'security' + - package_manager: 'javascript' + directory: '/axe_core_test' + update_schedule: 'weekly' default_labels: - - "axe_api_deps_bot" + - 'axe_api_deps_bot' allowed_updates: - match: - update_type: "security" - - package_manager: "javascript" - directory: "/packages/cli" - update_schedule: "weekly" + update_type: 'security' + - package_manager: 'javascript' + directory: '/packages/cli' + update_schedule: 'weekly' default_labels: - - "axe_api_deps_bot" + - 'axe_api_deps_bot' allowed_updates: - match: - update_type: "security" - - package_manager: "javascript" - directory: "/packages/puppeteer" - update_schedule: "weekly" + update_type: 'security' + - package_manager: 'javascript' + directory: '/packages/puppeteer' + update_schedule: 'weekly' default_labels: - - "axe_api_deps_bot" + - 'axe_api_deps_bot' allowed_updates: - match: - update_type: "security" - - package_manager: "javascript" - directory: "/packages/react" - update_schedule: "weekly" + update_type: 'security' + - package_manager: 'javascript' + directory: '/packages/react' + update_schedule: 'weekly' default_labels: - - "axe_api_deps_bot" + - 'axe_api_deps_bot' allowed_updates: - match: - update_type: "security" - - package_manager: "javascript" - directory: "/packages/reporter-earl" - update_schedule: "weekly" + update_type: 'security' + - package_manager: 'javascript' + directory: '/packages/reporter-earl' + update_schedule: 'weekly' default_labels: - - "axe_api_deps_bot" + - 'axe_api_deps_bot' allowed_updates: - match: - update_type: "security" - - package_manager: "javascript" - directory: "/packages/webdriverjs" - update_schedule: "weekly" + update_type: 'security' + - package_manager: 'javascript' + directory: '/packages/webdriverjs' + update_schedule: 'weekly' default_labels: - - "axe_api_deps_bot" + - 'axe_api_deps_bot' allowed_updates: - match: - update_type: "security" \ No newline at end of file + update_type: 'security' diff --git a/.github/ISSUE_TEMPLATE/possible-bug.yml b/.github/ISSUE_TEMPLATE/possible-bug.yml index 410a96b2..8e8d6e74 100644 --- a/.github/ISSUE_TEMPLATE/possible-bug.yml +++ b/.github/ISSUE_TEMPLATE/possible-bug.yml @@ -27,7 +27,7 @@ body: id: version attributes: label: Product Version - description: For the integration please check the `package.json` file + description: For the integration please check the `package.json` file - type: checkboxes id: latest-axe attributes: diff --git a/.github/axe-linter.yml b/.github/axe-linter.yml index 6d66c324..3eadba0d 100644 --- a/.github/axe-linter.yml +++ b/.github/axe-linter.yml @@ -1,6 +1,6 @@ rules: # Disables a11y issues for testing - html-has-lang: false + html-has-lang: false exclude: - packages/react/CHANGELOG.md - packages/react/examples/**/* diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 9ab4bbb7..289a4581 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -50,8 +50,8 @@ jobs: branch: release branch-suffix: timestamp base: master - title: "chore: release v${{ steps.get-new-version.outputs.version }}" + title: 'chore: release v${{ steps.get-new-version.outputs.version }}' # If there are any changes not already committed, they will be added to # a commit with this as the message. # If there are no changes no commit will be created. - commit-message: "chore: applying release changes" + commit-message: 'chore: applying release changes' diff --git a/.github/workflows/sync-master-develop.yml b/.github/workflows/sync-master-develop.yml index f6a55497..12ad7cd9 100644 --- a/.github/workflows/sync-master-develop.yml +++ b/.github/workflows/sync-master-develop.yml @@ -12,7 +12,7 @@ jobs: - uses: dequelabs/action-sync-branches@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} - pr-title: "chore: merge master into develop" + pr-title: 'chore: merge master into develop' pr-reviewers: michael-siek,stephenmathieson pr-labels: chore pr-template: .github/PULL_REQUEST_TEMPLATE.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 28eba3ae..801b38c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,105 +5,67 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## [4.7.3](https://github.com/dequelabs/axe-core-npm/compare/v4.7.2...v4.7.3) (2023-06-09) - ### Bug Fixes -* **webdriverjs:** skip unloaded iframes ([#743](https://github.com/dequelabs/axe-core-npm/issues/743)) ([9cb50eb](https://github.com/dequelabs/axe-core-npm/commit/9cb50ebb6b138cb0aa6b785bc7c826c4b9a21086)) - - - - +- **webdriverjs:** skip unloaded iframes ([#743](https://github.com/dequelabs/axe-core-npm/issues/743)) ([9cb50eb](https://github.com/dequelabs/axe-core-npm/commit/9cb50ebb6b138cb0aa6b785bc7c826c4b9a21086)) ## [4.7.2](https://github.com/dequelabs/axe-core-npm/compare/v4.7.1...v4.7.2) (2023-06-01) - ### Bug Fixes -* **packages/cli:** revert ESM ([#730](https://github.com/dequelabs/axe-core-npm/issues/730)) ([4e1fb95](https://github.com/dequelabs/axe-core-npm/commit/4e1fb958fa251db7eea3433f91f2a2f3adbda1e8)) -* **playwright:** Enable usage with `@playwright/test` ([#731](https://github.com/dequelabs/axe-core-npm/issues/731)) ([0d0c9d1](https://github.com/dequelabs/axe-core-npm/commit/0d0c9d1b75051b26f0bb745abc5c8974a9fa4d54)) - - - - +- **packages/cli:** revert ESM ([#730](https://github.com/dequelabs/axe-core-npm/issues/730)) ([4e1fb95](https://github.com/dequelabs/axe-core-npm/commit/4e1fb958fa251db7eea3433f91f2a2f3adbda1e8)) +- **playwright:** Enable usage with `@playwright/test` ([#731](https://github.com/dequelabs/axe-core-npm/issues/731)) ([0d0c9d1](https://github.com/dequelabs/axe-core-npm/commit/0d0c9d1b75051b26f0bb745abc5c8974a9fa4d54)) ## [4.7.1](https://github.com/dequelabs/axe-core-npm/compare/v4.7.0...v4.7.1) (2023-05-02) - ### Bug Fixes -* proper imports in esm context ([#718](https://github.com/dequelabs/axe-core-npm/issues/718)) ([f2a41bc](https://github.com/dequelabs/axe-core-npm/commit/f2a41bcaf33f5000fa1cd08f1a3e184b5d6360be)) -* **react:** include .mjs file in publish ([#722](https://github.com/dequelabs/axe-core-npm/issues/722)) ([a7bf92f](https://github.com/dequelabs/axe-core-npm/commit/a7bf92fd9856b7be0fea4f3c8bd38a79a3c9fde3)) - - - - +- proper imports in esm context ([#718](https://github.com/dequelabs/axe-core-npm/issues/718)) ([f2a41bc](https://github.com/dequelabs/axe-core-npm/commit/f2a41bcaf33f5000fa1cd08f1a3e184b5d6360be)) +- **react:** include .mjs file in publish ([#722](https://github.com/dequelabs/axe-core-npm/issues/722)) ([a7bf92f](https://github.com/dequelabs/axe-core-npm/commit/a7bf92fd9856b7be0fea4f3c8bd38a79a3c9fde3)) # [4.7.0](https://github.com/dequelabs/axe-core-npm/compare/v4.6.1...v4.7.0) (2023-04-28) - ### Bug Fixes -* **cli:** do not inject script tags due to pages not allowing script tags ([#710](https://github.com/dequelabs/axe-core-npm/issues/710)) ([2e0fdb4](https://github.com/dequelabs/axe-core-npm/commit/2e0fdb4a4661040b9b8dbb91bed1a96142e4fe0c)) - +- **cli:** do not inject script tags due to pages not allowing script tags ([#710](https://github.com/dequelabs/axe-core-npm/issues/710)) ([2e0fdb4](https://github.com/dequelabs/axe-core-npm/commit/2e0fdb4a4661040b9b8dbb91bed1a96142e4fe0c)) ### Features -* enable esm import ([#713](https://github.com/dequelabs/axe-core-npm/issues/713)) ([076bfa9](https://github.com/dequelabs/axe-core-npm/commit/076bfa99f27f416b4eaff6d24cc23e8573fc72ee)) -* support WDIO v8 ([#708](https://github.com/dequelabs/axe-core-npm/issues/708)) ([1e40ec0](https://github.com/dequelabs/axe-core-npm/commit/1e40ec006844a9b5f0e368b5ca8014e215c75372)) -* Update axe-core to v4.7.0 ([#709](https://github.com/dequelabs/axe-core-npm/issues/709)) ([d418d09](https://github.com/dequelabs/axe-core-npm/commit/d418d093b4c462d5d60e0f7ad3d5147bcaf52aa2)) - - - - +- enable esm import ([#713](https://github.com/dequelabs/axe-core-npm/issues/713)) ([076bfa9](https://github.com/dequelabs/axe-core-npm/commit/076bfa99f27f416b4eaff6d24cc23e8573fc72ee)) +- support WDIO v8 ([#708](https://github.com/dequelabs/axe-core-npm/issues/708)) ([1e40ec0](https://github.com/dequelabs/axe-core-npm/commit/1e40ec006844a9b5f0e368b5ca8014e215c75372)) +- Update axe-core to v4.7.0 ([#709](https://github.com/dequelabs/axe-core-npm/issues/709)) ([d418d09](https://github.com/dequelabs/axe-core-npm/commit/d418d093b4c462d5d60e0f7ad3d5147bcaf52aa2)) ## [4.6.1](https://github.com/dequelabs/axe-core-npm/compare/v4.6.0...v4.6.1) (2023-03-28) - ### Bug Fixes -* **cli:** increase --timeout default to 90 seconds (to match --help) ([#683](https://github.com/dequelabs/axe-core-npm/issues/683)) ([d11481b](https://github.com/dequelabs/axe-core-npm/commit/d11481b8c74598617260586fe14c8ceba32c6792)) -* Update axe-core to v4.6.3 ([#698](https://github.com/dequelabs/axe-core-npm/issues/698)) ([a7d53a4](https://github.com/dequelabs/axe-core-npm/commit/a7d53a4876237c74bb8dc2836b703cdaf2f7ace5)) -* work with extremely large results ([#667](https://github.com/dequelabs/axe-core-npm/issues/667)) ([395d5fc](https://github.com/dequelabs/axe-core-npm/commit/395d5fc165c97f0c297176eb69eb58d2510c938f)) - +- **cli:** increase --timeout default to 90 seconds (to match --help) ([#683](https://github.com/dequelabs/axe-core-npm/issues/683)) ([d11481b](https://github.com/dequelabs/axe-core-npm/commit/d11481b8c74598617260586fe14c8ceba32c6792)) +- Update axe-core to v4.6.3 ([#698](https://github.com/dequelabs/axe-core-npm/issues/698)) ([a7d53a4](https://github.com/dequelabs/axe-core-npm/commit/a7d53a4876237c74bb8dc2836b703cdaf2f7ace5)) +- work with extremely large results ([#667](https://github.com/dequelabs/axe-core-npm/issues/667)) ([395d5fc](https://github.com/dequelabs/axe-core-npm/commit/395d5fc165c97f0c297176eb69eb58d2510c938f)) ### Features -* **webdriverio:** deprecate @wdio/sync support ([#677](https://github.com/dequelabs/axe-core-npm/issues/677)) ([6121e55](https://github.com/dequelabs/axe-core-npm/commit/6121e55e000b0b8b5b93c92b8530cfa1bd505da8)) - - - - +- **webdriverio:** deprecate @wdio/sync support ([#677](https://github.com/dequelabs/axe-core-npm/issues/677)) ([6121e55](https://github.com/dequelabs/axe-core-npm/commit/6121e55e000b0b8b5b93c92b8530cfa1bd505da8)) # [4.6.0](https://github.com/dequelabs/axe-core-npm/compare/v4.5.2...v4.6.0) (2023-01-19) - ### Bug Fixes -* **playwright:** update playwright to support updated types ([#635](https://github.com/dequelabs/axe-core-npm/issues/635)) ([1339ec7](https://github.com/dequelabs/axe-core-npm/commit/1339ec7199fd654f6116ecaf824274a163cf3a73)) -* use `SerialContextObject` type instead of `ContextObject` ([#632](https://github.com/dequelabs/axe-core-npm/issues/632)) ([630b545](https://github.com/dequelabs/axe-core-npm/commit/630b545469b8e973e2aa9c7d879f9c120ce8a4d9)) - +- **playwright:** update playwright to support updated types ([#635](https://github.com/dequelabs/axe-core-npm/issues/635)) ([1339ec7](https://github.com/dequelabs/axe-core-npm/commit/1339ec7199fd654f6116ecaf824274a163cf3a73)) +- use `SerialContextObject` type instead of `ContextObject` ([#632](https://github.com/dequelabs/axe-core-npm/issues/632)) ([630b545](https://github.com/dequelabs/axe-core-npm/commit/630b545469b8e973e2aa9c7d879f9c120ce8a4d9)) ### Features -* support shadow dom selectors ([#619](https://github.com/dequelabs/axe-core-npm/issues/619)) ([6065b56](https://github.com/dequelabs/axe-core-npm/commit/6065b562adf289341033a7233426ba3dcfb8a24b)) -* Update axe-core to v4.6.1 ([#633](https://github.com/dequelabs/axe-core-npm/issues/633)) ([8bab5b2](https://github.com/dequelabs/axe-core-npm/commit/8bab5b23b3653a6a0603f10d889e22418a4fff3e)) - - - - +- support shadow dom selectors ([#619](https://github.com/dequelabs/axe-core-npm/issues/619)) ([6065b56](https://github.com/dequelabs/axe-core-npm/commit/6065b562adf289341033a7233426ba3dcfb8a24b)) +- Update axe-core to v4.6.1 ([#633](https://github.com/dequelabs/axe-core-npm/issues/633)) ([8bab5b2](https://github.com/dequelabs/axe-core-npm/commit/8bab5b23b3653a6a0603f10d889e22418a4fff3e)) ## [4.5.2](https://github.com/dequelabs/axe-core-npm/compare/v4.5.1...v4.5.2) (2022-11-15) - ### Bug Fixes -* **cli:** include all functions in types file ([#603](https://github.com/dequelabs/axe-core-npm/issues/603)) ([30042ef](https://github.com/dequelabs/axe-core-npm/commit/30042ef3acc0cab7f67ddcf284df089f243f53e6)) -* **cli:** use correct driver typings ([#604](https://github.com/dequelabs/axe-core-npm/issues/604)) ([d33bbdf](https://github.com/dequelabs/axe-core-npm/commit/d33bbdf2b3d05c3ba0106d717ba1c8d706c5e05c)) -* update to use axe-core 4.5.2 ([#607](https://github.com/dequelabs/axe-core-npm/issues/607)) ([61312ff](https://github.com/dequelabs/axe-core-npm/commit/61312fff2e9ee4e0f218a29a1608f69b45206fad)) - - - - +- **cli:** include all functions in types file ([#603](https://github.com/dequelabs/axe-core-npm/issues/603)) ([30042ef](https://github.com/dequelabs/axe-core-npm/commit/30042ef3acc0cab7f67ddcf284df089f243f53e6)) +- **cli:** use correct driver typings ([#604](https://github.com/dequelabs/axe-core-npm/issues/604)) ([d33bbdf](https://github.com/dequelabs/axe-core-npm/commit/d33bbdf2b3d05c3ba0106d717ba1c8d706c5e05c)) +- update to use axe-core 4.5.2 ([#607](https://github.com/dequelabs/axe-core-npm/issues/607)) ([61312ff](https://github.com/dequelabs/axe-core-npm/commit/61312fff2e9ee4e0f218a29a1608f69b45206fad)) ## [4.5.1](https://github.com/dequelabs/axe-core-npm/compare/v4.5.0...v4.5.1) (2022-11-03) diff --git a/axe_core_test/axe-core-version.test.js b/axe_core_test/axe-core-version.test.js index 7bed1d6f..9dd0e5e7 100644 --- a/axe_core_test/axe-core-version.test.js +++ b/axe_core_test/axe-core-version.test.js @@ -29,9 +29,8 @@ describe('verify axe-core version', () => { const reporterEarlVersion = reporterEarl.version; const reporterEarlAxeCoreVersion = reporterEarl.devDependencies['axe-core']; - const [packageAxeCoreVersion] = reporterEarlAxeCoreVersion.match( - versioning - ); + const [packageAxeCoreVersion] = + reporterEarlAxeCoreVersion.match(versioning); const [axeCoreReporterEarlVersion] = reporterEarlVersion.match(versioning); assert.strictEqual(axeCoreReporterEarlVersion, packageAxeCoreVersion); }); diff --git a/package.json b/package.json index b96d3aa9..7d65b3e1 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "license": "MPL-2.0", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "fmt": "prettier --write *.{md,js,json} \"packages/**/*.{js,ts,tsx,html,json,md,css}\"", - "lint": "eslint *.js \"packages/**/*.{js,ts,tsx}\"", + "fmt": "prettier --write .", + "lint": "eslint .", "bootstrap": "lerna bootstrap", "prepare": "husky install", "precommit": "lint-staged" diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 6d4480be..08c26dd9 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -7,82 +7,48 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline **Note:** Version bump only for package @axe-core/cli - - - - ## [4.7.2](https://github.com/dequelabs/axe-core-npm/compare/v4.7.1...v4.7.2) (2023-06-01) - ### Bug Fixes -* **packages/cli:** revert ESM ([#730](https://github.com/dequelabs/axe-core-npm/issues/730)) ([4e1fb95](https://github.com/dequelabs/axe-core-npm/commit/4e1fb958fa251db7eea3433f91f2a2f3adbda1e8)) - - - - +- **packages/cli:** revert ESM ([#730](https://github.com/dequelabs/axe-core-npm/issues/730)) ([4e1fb95](https://github.com/dequelabs/axe-core-npm/commit/4e1fb958fa251db7eea3433f91f2a2f3adbda1e8)) ## [4.7.1](https://github.com/dequelabs/axe-core-npm/compare/v4.7.0...v4.7.1) (2023-05-02) **Note:** Version bump only for package @axe-core/cli - - - - # [4.7.0](https://github.com/dequelabs/axe-core-npm/compare/v4.6.1...v4.7.0) (2023-04-28) - ### Bug Fixes -* **cli:** do not inject script tags due to pages not allowing script tags ([#710](https://github.com/dequelabs/axe-core-npm/issues/710)) ([2e0fdb4](https://github.com/dequelabs/axe-core-npm/commit/2e0fdb4a4661040b9b8dbb91bed1a96142e4fe0c)) - +- **cli:** do not inject script tags due to pages not allowing script tags ([#710](https://github.com/dequelabs/axe-core-npm/issues/710)) ([2e0fdb4](https://github.com/dequelabs/axe-core-npm/commit/2e0fdb4a4661040b9b8dbb91bed1a96142e4fe0c)) ### Features -* enable esm import ([#713](https://github.com/dequelabs/axe-core-npm/issues/713)) ([076bfa9](https://github.com/dequelabs/axe-core-npm/commit/076bfa99f27f416b4eaff6d24cc23e8573fc72ee)) -* Update axe-core to v4.7.0 ([#709](https://github.com/dequelabs/axe-core-npm/issues/709)) ([d418d09](https://github.com/dequelabs/axe-core-npm/commit/d418d093b4c462d5d60e0f7ad3d5147bcaf52aa2)) - - - - +- enable esm import ([#713](https://github.com/dequelabs/axe-core-npm/issues/713)) ([076bfa9](https://github.com/dequelabs/axe-core-npm/commit/076bfa99f27f416b4eaff6d24cc23e8573fc72ee)) +- Update axe-core to v4.7.0 ([#709](https://github.com/dequelabs/axe-core-npm/issues/709)) ([d418d09](https://github.com/dequelabs/axe-core-npm/commit/d418d093b4c462d5d60e0f7ad3d5147bcaf52aa2)) ## [4.6.1](https://github.com/dequelabs/axe-core-npm/compare/v4.6.0...v4.6.1) (2023-03-28) - ### Bug Fixes -* **cli:** increase --timeout default to 90 seconds (to match --help) ([#683](https://github.com/dequelabs/axe-core-npm/issues/683)) ([d11481b](https://github.com/dequelabs/axe-core-npm/commit/d11481b8c74598617260586fe14c8ceba32c6792)) -* Update axe-core to v4.6.3 ([#698](https://github.com/dequelabs/axe-core-npm/issues/698)) ([a7d53a4](https://github.com/dequelabs/axe-core-npm/commit/a7d53a4876237c74bb8dc2836b703cdaf2f7ace5)) - - - - +- **cli:** increase --timeout default to 90 seconds (to match --help) ([#683](https://github.com/dequelabs/axe-core-npm/issues/683)) ([d11481b](https://github.com/dequelabs/axe-core-npm/commit/d11481b8c74598617260586fe14c8ceba32c6792)) +- Update axe-core to v4.6.3 ([#698](https://github.com/dequelabs/axe-core-npm/issues/698)) ([a7d53a4](https://github.com/dequelabs/axe-core-npm/commit/a7d53a4876237c74bb8dc2836b703cdaf2f7ace5)) # [4.6.0](https://github.com/dequelabs/axe-core-npm/compare/v4.5.2...v4.6.0) (2023-01-19) - ### Features -* support shadow dom selectors ([#619](https://github.com/dequelabs/axe-core-npm/issues/619)) ([6065b56](https://github.com/dequelabs/axe-core-npm/commit/6065b562adf289341033a7233426ba3dcfb8a24b)) -* Update axe-core to v4.6.1 ([#633](https://github.com/dequelabs/axe-core-npm/issues/633)) ([8bab5b2](https://github.com/dequelabs/axe-core-npm/commit/8bab5b23b3653a6a0603f10d889e22418a4fff3e)) - - - - +- support shadow dom selectors ([#619](https://github.com/dequelabs/axe-core-npm/issues/619)) ([6065b56](https://github.com/dequelabs/axe-core-npm/commit/6065b562adf289341033a7233426ba3dcfb8a24b)) +- Update axe-core to v4.6.1 ([#633](https://github.com/dequelabs/axe-core-npm/issues/633)) ([8bab5b2](https://github.com/dequelabs/axe-core-npm/commit/8bab5b23b3653a6a0603f10d889e22418a4fff3e)) ## [4.5.2](https://github.com/dequelabs/axe-core-npm/compare/v4.5.1...v4.5.2) (2022-11-15) - ### Bug Fixes -* **cli:** include all functions in types file ([#603](https://github.com/dequelabs/axe-core-npm/issues/603)) ([30042ef](https://github.com/dequelabs/axe-core-npm/commit/30042ef3acc0cab7f67ddcf284df089f243f53e6)) -* **cli:** use correct driver typings ([#604](https://github.com/dequelabs/axe-core-npm/issues/604)) ([d33bbdf](https://github.com/dequelabs/axe-core-npm/commit/d33bbdf2b3d05c3ba0106d717ba1c8d706c5e05c)) -* update to use axe-core 4.5.2 ([#607](https://github.com/dequelabs/axe-core-npm/issues/607)) ([61312ff](https://github.com/dequelabs/axe-core-npm/commit/61312fff2e9ee4e0f218a29a1608f69b45206fad)) - - - - +- **cli:** include all functions in types file ([#603](https://github.com/dequelabs/axe-core-npm/issues/603)) ([30042ef](https://github.com/dequelabs/axe-core-npm/commit/30042ef3acc0cab7f67ddcf284df089f243f53e6)) +- **cli:** use correct driver typings ([#604](https://github.com/dequelabs/axe-core-npm/issues/604)) ([d33bbdf](https://github.com/dequelabs/axe-core-npm/commit/d33bbdf2b3d05c3ba0106d717ba1c8d706c5e05c)) +- update to use axe-core 4.5.2 ([#607](https://github.com/dequelabs/axe-core-npm/issues/607)) ([61312ff](https://github.com/dequelabs/axe-core-npm/commit/61312fff2e9ee4e0f218a29a1608f69b45206fad)) ## [4.5.1](https://github.com/dequelabs/axe-core-npm/compare/v4.5.0...v4.5.1) (2022-11-03) diff --git a/packages/cli/src/testutils/axe-core@2.5.0.js b/packages/cli/src/testutils/axe-core@2.5.0.js index b5ab72e5..6f1fc0c5 100644 --- a/packages/cli/src/testutils/axe-core@2.5.0.js +++ b/packages/cli/src/testutils/axe-core@2.5.0.js @@ -1096,15 +1096,14 @@ } axe._load = function (audit) { 'use strict'; - axe.utils.respondable.subscribe('axe.ping', function ( - data, - keepalive, - respond - ) { - respond({ - axe: true - }); - }); + axe.utils.respondable.subscribe( + 'axe.ping', + function (data, keepalive, respond) { + respond({ + axe: true + }); + } + ); axe.utils.respondable.subscribe('axe.start', runCommand); axe._audit = new Audit(audit); }; @@ -1843,16 +1842,20 @@ timeout = setTimeout(function () { reject(err('Axe in frame timed out', node)); }, 3e4); - axe.utils.respondable(win, 'axe.start', parameters, undefined, function ( - data - ) { - clearTimeout(timeout); - if (data instanceof Error === false) { - resolve(data); - } else { - reject(data); + axe.utils.respondable( + win, + 'axe.start', + parameters, + undefined, + function (data) { + clearTimeout(timeout); + if (data instanceof Error === false) { + resolve(data); + } else { + reject(data); + } } - }); + ); }); }; function collectResultsFromFrames( @@ -3779,8 +3782,7 @@ checkboxgroup: { description: 'Ensures related elements have a group and that that group designation is consistent', - help: - 'Checkbox inputs with the same name attribute value must be part of a group' + help: 'Checkbox inputs with the same name attribute value must be part of a group' }, 'color-contrast': { description: @@ -3789,8 +3791,7 @@ }, 'definition-list': { description: 'Ensures
elements are structured correctly', - help: - '
elements must only directly contain properly-ordered
and
groups,