3. Testing in mocked mode
Last updated
Was this helpful?
Last updated
Was this helpful?
This tutorial walks you through performing tests in the mocked mode provided by the fhEVM Hardhat template.
Before proceeding, ensure you have:
A configured Hardhat project using the fhEVM Hardhat template. (See the )
Basic knowledge of Solidity and Hardhat testing. (See the )
To run tests in mocked mode, open a terminal in your project's root directory and execute:
This command runs all tests locally in mocked mode. You should see the test results in your console.
For most development and demonstration scenarios, mocked mode is sufficient. However, for production-ready development and a real testing environment, you need to run your tests on a real network where the coprocessor is deployed for example Sepolia. Refer to the on how to deploy your contract on Sepolia test network.