Skip to content

Add Vitest unit tests for core utilities #6

@maxmini0214

Description

@maxmini0214

Summary

Add unit tests for the core utility functions that power DonFlow.

Priority targets

  1. formatCurrency() / getCurrency() — locale-aware formatting
  2. classifyMerchant() — merchant name → category mapping
  3. detectCsvFormat() — auto-detection of bank CSV formats
  4. calculateDrift() — plan vs actual variance calculation

Stack

  • Vitest (already compatible with Vite)
  • Testing Library for component tests (optional, separate issue)

Why

Core financial calculations must be correct. Tests prevent regressions on drift detection and currency formatting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions