Update Jest configuration to include TypeScript support and add new code quality checks workflow; translate comments to Russian and adjust paths in test files.

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-12-05 16:51:44 +03:00
parent d477a0a5f1
commit 7066252bcb
14 changed files with 646 additions and 294 deletions

View File

@@ -37,6 +37,7 @@ const storage = multer.diskStorage({
const originalExtension = path.extname(fixedName) || '';
const baseName = path
.basename(fixedName, originalExtension)
// eslint-disable-next-line no-control-regex
.replace(/[<>:"/\\|?*\x00-\x1F]+/g, '_'); // Убираем только недопустимые символы Windows, оставляем кириллицу
cb(null, `${Date.now()}_${baseName}${originalExtension}`);
},