diff --git a/.solcover.js b/.solcover.js index 1160850..b024ca8 100644 --- a/.solcover.js +++ b/.solcover.js @@ -1,14 +1,33 @@ -const accounts = require(`./test-wallets.js`).accounts; +// Import predefined wallet accounts (private keys/addresses) to load into the local EVM. +const accounts = require('./test-wallets.js').accounts; +/** + * Configuration for the smart contract testing environment (e.g., Hardhat or Truffle). + */ module.exports = { + // Exclude external, audited libraries (like OpenZeppelin contracts) + // from code coverage reports to focus only on proprietary code. skipFiles: ["open-zeppelin/"], + + // Mocha Test Runner Configuration mocha: { + // Disable test execution timeouts. This is common for long-running deployment + // and complex integration tests to prevent premature failures. enableTimeouts: false, }, + + // Configuration options for the local Ethereum client (Ganache/Hardhat Network). providerOptions: { + // List of accounts (private keys) to initialize and fund in the local chain. accounts, + + // Explicitly set the chain ID for the local network (1337 is the standard development ID). _chainId: 1337, + + // Explicitly set the chain ID reported via RPC responses (often redundant but ensures compatibility). _chainIdRpc: 1337, + + // Set the legacy network ID (often required by older Truffle or Ganache versions). network_id: 1337, }, };