Documentation Index
Fetch the complete documentation index at: https://cowswap-mintlify-docs-audit-1776071666.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Testing
Running tests
Execute the test suite with:- Builds the project (
yarn build) - Runs Jest tests against the compiled output in
./dist
Test configuration
Jest testing is configured throughpackage.json:
Test structure
Test files are colocated with source files using the.spec.ts extension:
Coverage collection
Jest collects coverage metrics from all TypeScript files insrc, while excluding:
abi/directory (contract ABIs)types/directory (generated types)
Testing considerations
Integration tests
For blockchain interaction testing:- Tests execute against compiled JavaScript in
./dist - Build the project before running tests
- Mock RPC calls in unit tests
Test isolation
Configuration settings for test isolation:automock: false- Requires manual mock setupresetMocks: false- Mocks carry between tests unless reset explicitly