mirror of
https://github.com/Zproger/Aurum.git
synced 2026-10-13 02:56:39 +07:00
test: юнит-тесты на форматирование и разбивки крипто-портфеля + версия 1.1.6
Vitest для чистой логики: lib/format.ts (заодно поймал баг в trimTrailingZeros на "-0.000") и расчёт разбивки по риску/монете/сети на вкладке Crypto — вынес их из компонентов в отдельные тестируемые функции. Тесты подключены в CI. Версия приложения обновлена до 1.1.6.
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -64,3 +64,8 @@ jobs:
|
||||
# and a type error a PR might introduce, same as `npm run build`
|
||||
# locally before shipping a change.
|
||||
- run: npm run build
|
||||
# Vitest over the pure-logic modules (lib/format.ts, the Crypto tab's
|
||||
# allocation math) — kept in the same job rather than a new one so a
|
||||
# renamed job doesn't silently stop matching branch protection's
|
||||
# required status checks.
|
||||
- run: npm run test
|
||||
|
||||
Reference in New Issue
Block a user