Code coverage for Solidity smart-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
solidity-coverage/test/integration/projects/hardhat-reset/hardhat.config.js

28 lines
642 B

require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require(__dirname + "/../plugins/nomiclabs.plugin");
if (!process.env.ALCHEMY_TOKEN){
throw new Error(
"This test requires that you set ALCHEMY_TOKEN to a valid token in your development env"
);
}
module.exports = {
solidity: {
version: "0.7.0"
},
networks: {
hardhat: {
timeout: 100000,
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_TOKEN}`,
blockNumber: 14000000,
}
}
},
mocha: {
timeout: 100000
},
logger: process.env.SILENT ? { log: () => {} } : console,
};