fix: move scan translations test to test folder

This commit is contained in:
Botzy 2025-05-28 12:25:55 +03:00
parent bafa6a7ad2
commit 66ad1ea59f
3 changed files with 3 additions and 4 deletions

3
.gitignore vendored
View file

@ -3,5 +3,4 @@
/yarn.lock
/npm-debug.log
.DS_Store
.prettierignore
i18n-report.csv
.prettierignore

View file

@ -11,7 +11,7 @@
"build": "webpack --mode production",
"test": "jest",
"lint": "eslint src",
"scan-translations": "npx jest i18nScan.test.js"
"scan-translations": "npx jest ./tests/i18nScan.test.js"
},
"dependencies": {
"@babel/runtime": "7.26.0",

View file

@ -98,7 +98,7 @@ describe('i18n hardcoded string scan', () => {
console.log('✅ No hardcoded strings found.');
} else {
console.log('🚨 Hardcoded strings found:');
report.forEach(row => {
report.forEach((row) => {
console.log(`File: ${row.file}, Line: ${row.line}, String: "${row.string}", Suggested Key: ${row.key}`);
});
}