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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"yargs": "^17.0.0"
},
"devDependencies": {
"@axe-core/cli": "^4.10.0",
"@axe-core/puppeteer": "^4.10.0",
"@axe-core/cli": "4.10.2",
"@axe-core/puppeteer": "4.10.2",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.14.136",
"@types/node": "^18.19.57",
Expand Down
2 changes: 2 additions & 0 deletions src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ describe('axe-sarif-converter CLI', () => {
${'w3citylights-axe-v4.10.2.axe-cli-v4.10.0.json'}
${'basic-axe-v4.10.2.axe-cli-v4.10.1.json'}
${'w3citylights-axe-v4.10.2.axe-cli-v4.10.1.json'}
${'basic-axe-v4.10.2.axe-cli-v4.10.2.json'}
${'w3citylights-axe-v4.10.2.axe-cli-v4.10.2.json'}
`(
'supports conversion from axe-cli output $inputFile',
async ({ inputFile }) => {
Expand Down
72 changes: 72 additions & 0 deletions src/test-resources/basic-axe-v4.10.2.axe-cli-v4.10.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[
{
"testEngine": {
"name": "axe-core",
"version": "4.10.2"
},
"testRunner": {
"name": "axe"
},
"testEnvironment": {
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/119.0.6045.6 Safari/537.36",
"windowWidth": 800,
"windowHeight": 600,
"orientationAngle": 0,
"orientationType": "landscape-primary"
},
"timestamp": "2025-07-07T09:42:43.010Z",
"url": "file:///C:/Users/v-singhanjal/source/repos/DependabotPRs/axe-core_cli(axe-sarif)/src/test-resources/basic.html",
"toolOptions": {
"runOnly": {
"type": "rule",
"values": [
"document-title"
]
},
"reporter": "v1"
},
"inapplicable": [],
"passes": [],
"incomplete": [],
"violations": [
{
"id": "document-title",
"impact": "serious",
"tags": [
"cat.text-alternatives",
"wcag2a",
"wcag242",
"TTv5",
"TT12.a",
"EN-301-549",
"EN-9.2.4.2",
"ACT"
],
"description": "Ensure each HTML document contains a non-empty <title> element",
"help": "Documents must have <title> element to aid in navigation",
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/document-title?application=webdriverjs",
"nodes": [
{
"any": [
{
"id": "doc-has-title",
"data": null,
"relatedNodes": [],
"impact": "serious",
"message": "Document does not have a non-empty <title> element"
}
],
"all": [],
"none": [],
"impact": "serious",
"html": "<html><head></head><body>\n</body></html>",
"target": [
"html"
],
"failureSummary": "Fix any of the following:\n Document does not have a non-empty <title> element"
}
]
}
]
}
]
Loading