Skip to content

Commit

Permalink
Add pattern indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
domoscargin committed Feb 13, 2024
1 parent cd84c5c commit 3403d7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions __tests__/accessibility-audit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,15 @@ function getFilesToCheck() {
const componentIndexes = globSync('components/*{,/*}.html', {
cwd: paths.public
})
const patternIndexes = globSync('patterns/*{,/*}.html', {
cwd: paths.public
})
const pageIndexes = globSync('**/index.html', {
cwd: paths.public,
ignore: ['components/**/index.html']
ignore: ['components/**/index.html', 'patterns/*{,/*}.html']
})

return [...componentIndexes, ...pageIndexes]
return [...componentIndexes, ...patternIndexes, ...pageIndexes]
}

describe('Accessibility audit', () => {
Expand Down

0 comments on commit 3403d7c

Please sign in to comment.