Skip to content

Commit c75614a

Browse files
committed
Correct the hardhat-ethers chalk migration
1 parent 7a383c9 commit c75614a

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

packages/hardhat-ethers/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
],
4141
"dependencies": {
4242
"debug": "^4.1.1",
43-
"lodash.isequal": "^4.5.0",
44-
"picocolors": "^1.1.0"
43+
"lodash.isequal": "^4.5.0"
4544
},
4645
"devDependencies": {
4746
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "workspace:^",
@@ -65,6 +64,7 @@
6564
"ethers": "^6.1.0",
6665
"hardhat": "workspace:^2.0.0",
6766
"mocha": "^10.0.0",
67+
"picocolors": "^1.1.0",
6868
"prettier": "2.4.1",
6969
"rimraf": "^3.0.2",
7070
"sinon": "^9.0.0",

packages/hardhat-ethers/test/environment.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chalk from "picocolors";
1+
import picocolors from "picocolors";
22
import fs from "fs";
33
import { HardhatRuntimeEnvironment, HardhatUserConfig } from "hardhat/types";
44
import { resetHardhatContext } from "hardhat/plugins-testing";
@@ -40,8 +40,8 @@ export function useEnvironment(
4040
afterEach(function () {
4141
if (this.currentTest?.state === "failed") {
4242
console.log(
43-
chalk.red("Failed in fixture project"),
44-
chalk.red(fixtureProjectPath)
43+
picocolors.red("Failed in fixture project"),
44+
picocolors.red(fixtureProjectPath)
4545
);
4646
}
4747
});
@@ -74,8 +74,8 @@ export function usePersistentEnvironment(
7474
afterEach(function () {
7575
if (this.currentTest?.state === "failed") {
7676
console.log(
77-
chalk.red("Failed in fixture project"),
78-
chalk.red(fixtureProjectPath)
77+
picocolors.red("Failed in fixture project"),
78+
picocolors.red(fixtureProjectPath)
7979
);
8080
}
8181
});
@@ -166,8 +166,8 @@ contract Example {
166166
afterEach(function () {
167167
if (this.currentTest?.state === "failed") {
168168
console.log(
169-
chalk.red("Failed in fixture project"),
170-
chalk.red(fixtureProjectPath)
169+
picocolors.red("Failed in fixture project"),
170+
picocolors.red(fixtureProjectPath)
171171
);
172172
}
173173
});

pnpm-lock.yaml

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)