Work / ICEO (venture builder)
Test coverage for a crypto trading and analytics platform
Tests for every untested hook, the synthetic exchange and execution windows, then a MUI v5 to v7 migration with that safety net in place.
- Organisation
- ICEO (venture builder)
- My role
- Senior Software Engineer (contract)
- Period
- Feb 2025 - Sep 2025
Context
ICEO builds products for its portfolio companies. I worked on a real-time trading and analytics front end for market-making and arbitrage: live financial charts, transaction history, risk dashboards and market configuration.
Problem
Core hooks had no tests, some existing suites were broken, and a major UI-library upgrade was due. Upgrading without a safety net on a trading tool risks silent errors in numbers people act on.
Approach
- Wrote tests for every untested hook and fixed the broken suites.
- Added coverage for the synthetic exchange and for execution windows.
- Moved API mocking to MSW so tests run against realistic responses.
- Wrote a 42-case form-validation suite.
- Led the MUI v5 to v7 migration once the tests were in place.
- Added type-safe localStorage, UTC timezone handling, persistent filters and GDPR cookie consent.
- Set up Bitbucket Pipelines and reviewed code for the team.
Key decisions
- Tests before the upgrade, not after
- A major UI-library migration touches every screen. Covering the hooks and exchange logic first turned the migration into a check against known behaviour.
- Mock at the network layer
- MSW intercepts requests, so components are tested the way they run in production instead of with hand-stubbed functions.
- Handle time in UTC everywhere
- Trading data mixes exchanges and users in different time zones; one convention removes a whole class of display bugs.
Outcomes
- Brought the previously untested hooks, synthetic exchange and execution windows under test.Source: Git history
- Completed the MUI v5 to v7 migration with the new suites as the safety net.Source: Git history
Stack
- React
- TypeScript
- MUI v7
- Jest
- MSW
- Bitbucket Pipelines