Skip to content

Commit

Permalink
fix: restore eslint for tests (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart authored Sep 17, 2024
1 parent 2b609d0 commit 67cf637
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/generators/test-unit-axe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export function run(templateData) {
);
}

copyFile(
`${__dirname}/templates/static/test/.eslintrc.json`,
`${getDestinationPath(templateData.hyphenatedName)}/test/.eslintrc.json`
);
replaceText(`${getDestinationPath(templateData.hyphenatedName)}/test/${templateData.hyphenatedName}.test.js`, templateData);
replaceText(`${getDestinationPath(templateData.hyphenatedName)}/test/${templateData.hyphenatedName}.axe.js`, templateData);
sortJSONMembers(`${getDestinationPath(templateData.hyphenatedName)}/package.json`, ['dependencies', 'devDependencies']);
Expand Down

0 comments on commit 67cf637

Please sign in to comment.