This project uses Vitest for unit testing.
# Run tests once
npm run test:run
# Run tests in watch mode
npm testTests are located in the src/tests/ directory with the .test.ts suffix.
Current test coverage includes:
StringUtils- Utility functions for shortening addresses and transaction IDs
The CI pipeline runs on every pull request via GitHub Actions with two separate jobs:
- Sets up Node.js 18
- Installs dependencies
- Runs linting (Prettier + TypeScript compilation)
- Sets up Node.js 18
- Installs dependencies
- Executes the test suite
Both jobs run in parallel for faster feedback. The workflow file is located at .github/workflows/ci.yml.