Overview
Learn how to test components and applications that use PolygonKit.Unit Testing
Test components using React Testing Library:Mock Wallet Connection
Mock wallet state for testing:Integration Testing
Test full wallet flows with Playwright or Cypress:Test with Test Networks
Always test on Amoy testnet:Best Practices
Use Test Networks
Use Test Networks
Always use testnets (Amoy) for testing, never mainnet.
Mock Wallet State
Mock Wallet State
Mock wallet connections in unit tests to avoid needing real wallets.
Test Error States
Test Error States
Test how your app handles connection errors and transaction failures.
E2E Testing
E2E Testing
Use end-to-end tests for critical wallet flows.