Skip to content

Commit 277b6dc

Browse files
authored
Merge pull request #4760 from lilpolymath/docs/chai-version-update
Docs: Update to lock chai at version 4
2 parents 7d2df82 + f2b811e commit 277b6dc

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

docs/src/content/hardhat-runner/docs/advanced/create-task.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ npm install --save-dev @nomicfoundation/hardhat-toolbox
6363
:::tab{value="npm 6"}
6464

6565
```
66-
npm install --save-dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
66+
npm install --save-dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai@4 ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
6767
```
6868

6969
:::
7070

7171
:::tab{value="yarn"}
7272

7373
```
74-
yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
74+
yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai@4 ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
7575
```
7676

7777
:::

docs/src/content/hardhat-runner/docs/advanced/migrating-from-hardhat-waffle.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Follow these steps to migrate your project to Hardhat Toolbox.
1717
:::tab{value="npm 7+"}
1818

1919
```
20-
npm uninstall @nomiclabs/hardhat-waffle ethereum-waffle @nomiclabs/hardhat-ethers @nomiclabs/hardhat-etherscan chai ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v5 @ethersproject/abi @ethersproject/providers
20+
npm uninstall @nomiclabs/hardhat-waffle ethereum-waffle @nomiclabs/hardhat-ethers @nomiclabs/hardhat-etherscan chai@4 ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v5 @ethersproject/abi @ethersproject/providers
2121
```
2222

2323
:::
2424

2525
:::tab{value="npm 6"}
2626

2727
```
28-
npm uninstall @nomiclabs/hardhat-waffle ethereum-waffle @nomiclabs/hardhat-ethers @nomiclabs/hardhat-etherscan chai ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v5 @ethersproject/abi @ethersproject/providers
28+
npm uninstall @nomiclabs/hardhat-waffle ethereum-waffle @nomiclabs/hardhat-ethers @nomiclabs/hardhat-etherscan chai@4 ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v5 @ethersproject/abi @ethersproject/providers
2929
```
3030

3131
:::
@@ -55,15 +55,15 @@ Follow these steps to migrate your project to Hardhat Toolbox.
5555
:::tab{value="npm 6"}
5656

5757
```
58-
npm install --save-dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
58+
npm install --save-dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai@4 ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
5959
```
6060

6161
:::
6262

6363
:::tab{value="yarn"}
6464

6565
```
66-
yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers@1 @nomiclabs/hardhat-ethers @nomiclabs/hardhat-etherscan chai ethers@5 hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
66+
yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers@1 @nomiclabs/hardhat-ethers @nomiclabs/hardhat-etherscan chai@4 ethers@5 hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
6767
```
6868

6969
:::

docs/src/content/hardhat-runner/docs/guides/typescript.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,23 @@ To be able to write your tests in TypeScript, you also need these packages:
5353
:::tab{value="npm 7+"}
5454

5555
```
56-
npm install --save-dev chai @types/node @types/mocha @types/chai
56+
npm install --save-dev chai@4 @types/node @types/mocha @types/chai@4
5757
```
5858

5959
:::
6060

6161
:::tab{value="npm 6"}
6262

6363
```
64-
npm install --save-dev chai @types/node @types/mocha @types/chai
64+
npm install --save-dev chai@4 @types/node @types/mocha @types/chai@4
6565
```
6666

6767
:::
6868

6969
:::tab{value=yarn}
7070

7171
```
72-
yarn add --dev chai @types/node @types/mocha @types/chai
72+
yarn add --dev chai@4 @types/node @types/mocha @types/chai@4
7373
```
7474

7575
:::

docs/src/content/hardhat-runner/docs/other-guides/waffle-testing.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ Then install [`chai`](https://www.chaijs.com/), the `@nomiclabs/hardhat-waffle`
5252
:::tab{value="npm 7+"}
5353

5454
```
55-
npm install --save-dev chai @nomiclabs/hardhat-waffle
55+
npm install --save-dev chai@4 @nomiclabs/hardhat-waffle
5656
```
5757

5858
:::
5959

6060
:::tab{value="npm 6"}
6161

6262
```
63-
npm install --save-dev chai @nomiclabs/hardhat-waffle ethereum-waffle @nomiclabs/hardhat-ethers ethers@5
63+
npm install --save-dev chai@4 @nomiclabs/hardhat-waffle ethereum-waffle @nomiclabs/hardhat-ethers ethers@5
6464
```
6565

6666
:::
6767

6868
:::tab{value="yarn"}
6969

7070
```
71-
yarn add --dev chai @nomiclabs/hardhat-waffle ethereum-waffle @nomiclabs/hardhat-ethers ethers@5
71+
yarn add --dev chai@4 @nomiclabs/hardhat-waffle ethereum-waffle @nomiclabs/hardhat-ethers ethers@5
7272
```
7373

7474
:::

docs/src/content/tutorial/creating-a-new-hardhat-project.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ npm install --save-dev @nomicfoundation/hardhat-toolbox
143143
:::tab{value="npm 6"}
144144

145145
```
146-
npm install --save-dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
146+
npm install --save-dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai@4 ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
147147
```
148148

149149
:::
150150

151151
:::tab{value=yarn}
152152

153153
```
154-
yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
154+
yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomicfoundation/hardhat-ethers @nomicfoundation/hardhat-verify chai@4 ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v6
155155
```
156156

157157
:::

packages/hardhat-chai-matchers/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ npm install --save-dev @nomicfoundation/hardhat-chai-matchers
1717
If you are using an older version of npm, you'll also need to install all the packages used by the plugin.
1818

1919
```bash
20-
npm install --save-dev @nomicfoundation/hardhat-chai-matchers chai @nomicfoundation/hardhat-ethers ethers
20+
npm install --save-dev @nomicfoundation/hardhat-chai-matchers chai@4 @nomicfoundation/hardhat-ethers ethers
2121
```
2222

2323
That's also the case if you are using yarn:
2424

2525
```bash
26-
yarn add --dev @nomicfoundation/hardhat-chai-matchers chai @nomicfoundation/hardhat-ethers ethers
26+
yarn add --dev @nomicfoundation/hardhat-chai-matchers chai@4 @nomicfoundation/hardhat-ethers ethers
2727
```
2828

2929
### Usage

0 commit comments

Comments
 (0)