Skip to content

Commit

Permalink
Move into test/scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
acuarica committed Sep 19, 2024
1 parent ddee302 commit fcc2e76
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .c8rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"exclude": [
".solc/soljson-v*.js",
"dist/test/",
"scripts/solc.mjs"
"test/scripts/solc.mjs"
]
}
2 changes: 1 addition & 1 deletion .mocharc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand Down
File renamed without changes.

0 comments on commit fcc2e76

Please sign in to comment.