Skip to content

Commit

Permalink
Correct the hardhat-ethers chalk migration
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Oct 26, 2024
1 parent 7a383c9 commit c75614a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/hardhat-ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
],
"dependencies": {
"debug": "^4.1.1",
"lodash.isequal": "^4.5.0",
"picocolors": "^1.1.0"
"lodash.isequal": "^4.5.0"
},
"devDependencies": {
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "workspace:^",
Expand All @@ -65,6 +64,7 @@
"ethers": "^6.1.0",
"hardhat": "workspace:^2.0.0",
"mocha": "^10.0.0",
"picocolors": "^1.1.0",
"prettier": "2.4.1",
"rimraf": "^3.0.2",
"sinon": "^9.0.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/hardhat-ethers/test/environment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chalk from "picocolors";
import picocolors from "picocolors";
import fs from "fs";
import { HardhatRuntimeEnvironment, HardhatUserConfig } from "hardhat/types";
import { resetHardhatContext } from "hardhat/plugins-testing";
Expand Down Expand Up @@ -40,8 +40,8 @@ export function useEnvironment(
afterEach(function () {
if (this.currentTest?.state === "failed") {
console.log(
chalk.red("Failed in fixture project"),
chalk.red(fixtureProjectPath)
picocolors.red("Failed in fixture project"),
picocolors.red(fixtureProjectPath)
);
}
});
Expand Down Expand Up @@ -74,8 +74,8 @@ export function usePersistentEnvironment(
afterEach(function () {
if (this.currentTest?.state === "failed") {
console.log(
chalk.red("Failed in fixture project"),
chalk.red(fixtureProjectPath)
picocolors.red("Failed in fixture project"),
picocolors.red(fixtureProjectPath)
);
}
});
Expand Down Expand Up @@ -166,8 +166,8 @@ contract Example {
afterEach(function () {
if (this.currentTest?.state === "failed") {
console.log(
chalk.red("Failed in fixture project"),
chalk.red(fixtureProjectPath)
picocolors.red("Failed in fixture project"),
picocolors.red(fixtureProjectPath)
);
}
});
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c75614a

Please sign in to comment.