From 67cf63721f886a4a933b9ab30ffa9f404b141889 Mon Sep 17 00:00:00 2001 From: Dave Lockhart Date: Tue, 17 Sep 2024 09:25:42 -0400 Subject: [PATCH] fix: restore eslint for tests (#95) --- src/generators/test-unit-axe/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generators/test-unit-axe/index.js b/src/generators/test-unit-axe/index.js index abcf6bd..ec62b40 100644 --- a/src/generators/test-unit-axe/index.js +++ b/src/generators/test-unit-axe/index.js @@ -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']);