project-nomad/admin/inertia
LuisMIguelFurlanettoSousa 7e0ae3ea83 test: adicionar suite inicial de testes unitários com Vitest
Adiciona 81 testes unitários cobrindo backend e frontend:

Backend (50 testes):
- utils/version: isNewerVersion, parseMajorVersion (14 testes)
- utils/misc: formatSpeed, toTitleCase, parseBoolean (17 testes)
- utils/fs: determineFileType, matchesDevice, sanitizeFilename (14 testes)
- validators/common: assertNotPrivateUrl - proteção SSRF (9 testes)

Frontend (27 testes):
- lib/classNames: concatenação condicional de classes (5 testes)
- lib/util: capitalizeFirstLetter, formatBytes, extractFileName (12 testes)
- hooks/useDiskDisplayData: getAllDiskDisplayItems, getPrimaryDiskInfo (6 testes)

Infraestrutura:
- Instala vitest, @testing-library/react, jsdom
- Configura vitest.config.ts com aliases para ~ e #app
- Script npm test:unit para rodar todos os testes

Closes #491
2026-03-23 11:53:55 -03:00
..
__tests__/lib test: adicionar suite inicial de testes unitários com Vitest 2026-03-23 11:53:55 -03:00
app fix(ui): reduce SSE reconnect churn and polling overhead on navigation 2026-03-20 11:46:10 -07:00
components fix(ui): support proper size override of LoadingSpinner 2026-03-20 11:46:10 -07:00
context feat: container controls & convienience scripts 2025-08-08 15:07:32 -07:00
css feat(UI): add Night Ops dark mode with theme toggle 2026-03-20 11:46:10 -07:00
hooks fix(ui): reduce SSE reconnect churn and polling overhead on navigation 2026-03-20 11:46:10 -07:00
layouts feat(UI): add Support the Project settings page 2026-03-20 11:46:10 -07:00
lib fix(downloads): allow users to dismiss failed downloads 2026-03-20 11:46:10 -07:00
pages fix(ui): ref issue in benchmark page 2026-03-20 19:29:13 +00:00
providers feat(UI): add Night Ops dark mode with theme toggle 2026-03-20 11:46:10 -07:00
tsconfig.json fix(Docs): documentation renderer fixes 2025-12-23 16:00:33 -08:00