Skip to content

Commit

Permalink
feat: update axe-core to v4.8.3 (#637)
Browse files Browse the repository at this point in the history
Co-authored-by: Navateja Alagam <navateja215@gmail.com>
  • Loading branch information
jaig-0911 and navateja-alagam committed Feb 6, 2024
1 parent 799c605 commit 5d4b0fb
Show file tree
Hide file tree
Showing 16 changed files with 542 additions and 399 deletions.
6 changes: 3 additions & 3 deletions packages/assert/__tests__/__snapshots__/assert.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@sa11y/common": "5.1.0",
"@sa11y/format": "5.1.0",
"@sa11y/preset-rules": "5.1.0",
"axe-core": "4.7.0"
"axe-core": "4.8.3"
},
"devDependencies": {
"@jest/globals": "28.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"@sa11y/format": "5.1.0",
"@sa11y/preset-rules": "5.1.0",
"axe-core": "4.7.0"
"axe-core": "4.8.3"
},
"devDependencies": {
"@rollup/plugin-commonjs": "23.0.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dist/**/*.d.ts*"
],
"dependencies": {
"axe-core": "4.7.0"
"axe-core": "4.8.3"
},
"devDependencies": {
"webdriverio": "7.34.0"
Expand Down
10 changes: 9 additions & 1 deletion packages/common/src/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ export interface Filter {
// const ruleIDs = getRules().map((ruleObj) => ruleObj.ruleId);
// type RuleID = keyof ruleIDs;
// type RuleID = typeof ruleIDs[number];
// Array of length 2 or greater
type MultiArray<T> = [T, T, ...T[]];

// Selectors within a frame
type BaseSelector = string;

type ShadowDomSelector = MultiArray<BaseSelector>;
type CrossTreeSelector = BaseSelector | ShadowDomSelector;
type RuleID = string;
type CssSelectors = string[];
type CssSelectors = CrossTreeSelector[];
/**
* Exception list of map of rule to corresponding css targets that needs to be filtered from a11y results.
*/
Expand Down
96 changes: 57 additions & 39 deletions packages/format/__tests__/__snapshots__/filter.test.ts.snap

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions packages/format/__tests__/__snapshots__/format.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5d4b0fb

Please sign in to comment.