Skip to content

Commit

Permalink
chore(runner): fix runner determination
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Sep 27, 2023
1 parent 6aa262a commit 3eaa6a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion kayle/lib/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export function extractArgs(o, watcher?: Watcher) {

// default to a runner
if (
!options.runners.some((runner) => runner === "axe" || runner === "htmlcs" || runner === "ace")
!options.runners.some(
(runner) => runner === "axe" || runner === "htmlcs" || runner === "ace"
)
) {
options.runners.push("htmlcs");
}
Expand Down
2 changes: 1 addition & 1 deletion kayle/lib/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
type: issue.type || issueCodeReverseMap[typeCode],
typeCode: typeCode || 0,
message: issue.message,
runner: issue.runner || issue.bounds ? "ace" : "kayle",
runner: issue.runner ? issue.runner : issue.bounds ? "ace" : "kayle",
runnerExtras: issue.runnerExtras,
recurrence: issue.recurrence || 0,
clip: issue.bounds
Expand Down
2 changes: 1 addition & 1 deletion kayle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kayle",
"version": "0.7.7",
"version": "0.7.8",
"description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.",
"main": "./build/index.js",
"keywords": [
Expand Down

0 comments on commit 3eaa6a9

Please sign in to comment.