diff --git a/.c8rc.json b/.c8rc.json index 22df2fc..f009d81 100644 --- a/.c8rc.json +++ b/.c8rc.json @@ -6,6 +6,6 @@ "exclude": [ ".solc/soljson-v*.js", "dist/test/", - "scripts/solc.mjs" + "test/scripts/solc.mjs" ] } diff --git a/.mocharc.yaml b/.mocharc.yaml index 47b47c1..0d0fed8 100644 --- a/.mocharc.yaml +++ b/.mocharc.yaml @@ -8,7 +8,7 @@ enable-source-maps: true # Fetch and cache `solc` compilers # https://mochajs.org/#global-setup-fixtures -require: scripts/solc.mjs +require: test/scripts/solc.mjs # https://github.com/mochajs/mocha/blob/master/example/config/.mocharc.yml spec: diff --git a/README.md b/README.md index 6e9e894..83f4b12 100644 --- a/README.md +++ b/README.md @@ -547,8 +547,14 @@ Embeds [`examples`](#examples) and `sevm --help` into [`README`](./README.md). Mocks network requests to avoid brittle **CLI** tests, _i.e._, `::examples` and `::bin` tests. Both `ethers`' JSON-RPC provider `eth_getCode` method and, `function` and `event` signatures from [OpenChain API](https://openchain.xyz/signatures) will be mocked. It is loaded using Node's flag [`--import=./scripts/mock.mjs`](https://nodejs.org/api/cli.html#--importmodule). -- [`solc.mjs`](./scripts/solc.mjs) -Downloads and caches [`solc-js`](https://github.com/ethereum/solc-js) compiler versions used in tests. It is invoked via Mocha's [_Global Setup Fixtures_](https://mochajs.org/#global-setup-fixtures). + +### [`test/scripts`](./test/scripts/) + +Contains utility scripts that complements the test process. + +- [`solc.mjs`](./test/scripts/solc.mjs) +Downloads and caches [`solc-js`](https://github.com/ethereum/solc-js) compiler versions used in tests. +It is invoked via Mocha's [_Global Setup Fixtures_](https://mochajs.org/#global-setup-fixtures). ### [`examples`](./examples/) diff --git a/scripts/solc.mjs b/test/scripts/solc.mjs similarity index 100% rename from scripts/solc.mjs rename to test/scripts/solc.mjs