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 /yarn.lock
/npm-debug.log /npm-debug.log
.DS_Store .DS_Store
.prettierignore .prettierignore
i18n-report.csv

View file

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

View file

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