Blog
Notes on testing web3 products and on test automation.
-
Playwright vs Jest for E2E tests: Playwright Test replaces Jest for browser tests. A comparison table, a migrated example, and where Jest still fits.
-
Fork testing smart contracts runs your tests on a copy of mainnet state. Learn when it helps, when it gives false confidence, and how to pin the block.
-
Flaky e2e tests have five causes: timing races, shared state, order dependence, environment limits and unstable selectors. Each one reproduced and fixed.
-
Sanity testing vs smoke testing explained in one table, with a worked checkout discount example and a clear answer on when you need both or just one.
-
How to run tests in parallel in CI/CD with workers, shards and job matrices. A GitHub Actions example, a risk table and the shared-state bugs that appear.
-
How to write a reentrancy test in Solidity with Foundry. Build the attacker contract, watch the test fail, then apply checks-effects-interactions and a guard.