Integration Testing with Hardhat Mainnet Forking
Learn how to use Hardhat mainnet forking to run integration tests against live protocol state using block pinning, account impersonation, and EVM snapshots.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to use Hardhat mainnet forking to run integration tests against live protocol state using block pinning, account impersonation, and EVM snapshots.
Use Hardhat Network with mainnet forking to run integration tests against a pinned replica of real on-chain state, with impersonation and time controls for safe simulation.
Cypress’s <code>cy.intercept</code> lets you stub network calls, making integration tests reliable and fast. This guide shows how to set up intercepts, use aliases for assertions, avoid common pitfalls, and verify that your stubs work.
Forking lets you run integration tests against a pinned copy of mainnet state. This guide covers configuration, impersonation, archive requirements, and how to avoid flaky tests.
Stop fighting flaky integration tests. Learn how to use Bitbucket Pipelines service containers to run isolated PostgreSQL or Redis instances for deterministic Java Maven builds.
Learn how to expose a local staging environment to BrowserStack’s cloud grid with the Local Testing binary, run tests from CI, and verify tunnel health. Includes a concrete Cypress example and recovery tips.
I want to run an integration test suite that exercises a New Relic language agent's instrumentation hooks against a test application, without using a real license key and without any data reaching a live New Relic account. Two documented approaches seem possible: enabling the agent's developer mode (via developer_mode: true in the config or the NEW_RELIC_DEV
The Gardener project provides an integration test script that runs Ginkgo tests against a local or CI environment, optionally generating JUnit reports. The script configures test flags, including a timeout when running in Prow, and invokes go test with GO111MODULE=on . However, exercising the shoot creation feature typically requires credentials for the targ
When running Talos integration tests without production credentials, the goal is to execute the test suite locally while avoiding any dependence on external API keys for result upload. The harness currently requires the MOZILLA_OFFICIAL environment variable; if it is unset, Talos fails with the error TalosError: Missing required environment variable MOZILLA_