Skip to content

Commit 572e3f4

Browse files
fvictorioWodann
andauthored
EDR book improvements (#4986)
Co-authored-by: Wodann <[email protected]>
1 parent d342cef commit 572e3f4

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

book/src/01_getting_started/01_setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ If you would like to set up the environment manually, you will need to install t
2626

2727
- Install Rust using [rustup](https://www.rust-lang.org/tools/install)
2828
- [NodeJS 18](https://nodejs.org/en)
29-
- [Yarn](https://yarnpkg.com/getting-started/install)
29+
- [pnpm](https://pnpm.io/installation)

book/src/01_getting_started/02_build.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ Moreover, it's EDR is a dependency for Hardhat, so in order to build Hardhat wit
66
To get started, install all dependencies in the root directory:
77

88
```bash
9-
yarn
9+
pnpm install
1010
```
1111

1212
Then navigate to the Hardhat Core directory and build Hardhat with EDR:
1313

1414
```bash
1515
cd packages/hardhat-core &&
16-
yarn build
16+
pnpm build
1717
```

book/src/01_getting_started/03_test.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ To switch modes, set the `HARDHAT_EXPERIMENTAL_VM_MODE` environment variable to
3737

3838
```bash
3939
cd packages/hardhat-core &&
40-
yarn build &&
41-
HARDHAT_EXPERIMENTAL_VM_MODE=edr yarn test
40+
pnpm build &&
41+
HARDHAT_EXPERIMENTAL_VM_MODE=edr pnpm test
4242
```
4343

4444
Similar to EDR, Hardhat can be configured to run remote tests. This can be accomplished by setting environment variables for the API URL (including token) of Alchemy or Infura, respectively: `ALCHEMY_URL` and `INFURA_URL`.
@@ -50,7 +50,7 @@ Additionally, you can test Hardhat by using the EDR node as a provider directly.
5050
Specific tests can be executed by filtering with the `--grep` or `-g` flag. E.g.:
5151

5252
```bash
53-
yarn test -g "Reads from disk if available, not making any request a request"
53+
pnpm test -- -g "Reads from disk if available, not making any request a request"
5454
```
5555

5656
will only run the test with this specific name.
@@ -67,7 +67,7 @@ Alchemy Forked provider
6767
can be run by using the following command:
6868

6969
```bash
70-
yarn test -g "Alchemy Forked provider hardhat_impersonateAccount hash collisions"
70+
pnpm test -- -g "Alchemy Forked provider hardhat_impersonateAccount hash collisions"
7171
```
7272

7373
### Debugging

book/src/02_development/01_tools.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ Create a provider test execution report for the base branch:
1717

1818
```bash
1919
# From packages/hardhat-core in the base branch
20-
yarn build && yarn test:provider --reporter json | tee base-test-provider-logs.json
20+
pnpm build && pnpm test:provider -- --reporter json | tee base-test-provider-logs.json
2121
```
2222

2323
Create a provider test execution report for the candidate branch:
2424

2525
```bash
2626
# From packages/hardhat-core in the candidate branch
27-
yarn build && yarn test:provider --reporter json | tee candidate-test-provider-logs.json
27+
pnpm build && pnpm test:provider -- --reporter json | tee candidate-test-provider-logs.json
2828
```
2929

3030
Generate a comparison report that will list slower tests in the candidate branch:
@@ -49,8 +49,6 @@ Only those requests will be collected that can be successfully deserialized.
4949

5050
## Rust runner
5151

52-
```bash
53-
5452
### Run scenario
5553

5654
```bash

0 commit comments

Comments
 (0)