mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
fix: move scan translations test to test folder
This commit is contained in:
parent
bafa6a7ad2
commit
66ad1ea59f
3 changed files with 3 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -3,5 +3,4 @@
|
||||||
/yarn.lock
|
/yarn.lock
|
||||||
/npm-debug.log
|
/npm-debug.log
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.prettierignore
|
.prettierignore
|
||||||
i18n-report.csv
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue