Skip to content

Commit 6cc85ee

Browse files
committed
Use our own reporter
1 parent 0e46f1b commit 6cc85ee

File tree

10 files changed

+60
-560
lines changed

10 files changed

+60
-560
lines changed

pnpm-lock.yaml

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

scripts/check-v-next-npm-scripts.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ for (const dir of dirs) {
1414
continue;
1515
}
1616

17+
// The test reporter is a special case, as it doesn't use itself as test
18+
// reporter
19+
if (dir.name === "hardhat-node-test-reporter") {
20+
continue;
21+
}
22+
1723
const packageJsonPath = path.resolve(vNextDir, dir.name, "package.json");
1824
const packageJson = require(packageJsonPath);
1925

@@ -43,7 +49,7 @@ for (const dir of dirs) {
4349
) {
4450
console.error(`Mismatch in script ${scriptName} in ${dir.name}`);
4551
console.error(` Expected: ${templatePackageJson.scripts[scriptName]}`);
46-
console.error(` Actual: ${packageJson.scripts[scriptName]}`);
52+
console.error(` Actual: ${packageJson.scripts[scriptName] ?? ""}`);
4753
console.error();
4854

4955
errorsFound = true;

v-next/core/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
"lint:fix": "pnpm prettier --write && pnpm eslint --fix",
3333
"eslint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
3434
"prettier": "prettier \"**/*.{ts,js,md,json}\"",
35-
"test": "node --import tsx/esm --test --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
36-
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
37-
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@voxpelli/node-test-pretty-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
38-
"test:coverage": "c8 --reporter html --reporter text --all --src src glob node --import tsx/esm --test --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
35+
"test": "node --import tsx/esm --test --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
36+
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
37+
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@nomicfoundation/hardhat-node-test-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
38+
"test:coverage": "c8 --reporter html --reporter text --all --src src glob node --import tsx/esm --test --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
3939
"pretest": "pnpm build",
4040
"build": "tsc --build .",
4141
"prepublishOnly": "pnpm build",
@@ -53,12 +53,12 @@
5353
"@microsoft/api-extractor": "^7.43.4",
5454
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "workspace:^",
5555
"@nomicfoundation/eslint-plugin-slow-imports": "workspace:^",
56+
"@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0",
5657
"@reporters/github": "^1.7.0",
5758
"@types/node": "^20.0.0",
5859
"@types/semver": "^7.5.8",
5960
"@typescript-eslint/eslint-plugin": "^7.7.1",
6061
"@typescript-eslint/parser": "^7.7.1",
61-
"@voxpelli/node-test-pretty-reporter": "^1.1.1",
6262
"c8": "^9.1.0",
6363
"eslint": "8.57.0",
6464
"eslint-config-prettier": "9.1.0",

v-next/hardhat-build-system/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"lint:fix": "pnpm prettier --write && pnpm eslint --fix",
2020
"eslint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
2121
"prettier": "prettier \"**/*.{ts,js,md,json}\"",
22-
"test": "node --import tsx/esm --test --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
23-
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
24-
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@voxpelli/node-test-pretty-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
22+
"test": "node --import tsx/esm --test --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
23+
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
24+
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@nomicfoundation/hardhat-node-test-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
2525
"pretest": "pnpm build",
2626
"build": "tsc --build .",
2727
"prepublishOnly": "pnpm build",
@@ -59,6 +59,7 @@
5959
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
6060
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "workspace:^",
6161
"@nomicfoundation/eslint-plugin-slow-imports": "workspace:^",
62+
"@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0",
6263
"@reporters/github": "^1.7.0",
6364
"@types/ci-info": "^2.0.0",
6465
"@types/debug": "^4.1.4",
@@ -71,7 +72,6 @@
7172
"@types/sinon": "^9.0.8",
7273
"@typescript-eslint/eslint-plugin": "^7.7.1",
7374
"@typescript-eslint/parser": "^7.7.1",
74-
"@voxpelli/node-test-pretty-reporter": "^1.1.1",
7575
"ci-info": "^2.0.0",
7676
"eslint": "8.57.0",
7777
"eslint-config-prettier": "9.1.0",

v-next/hardhat-errors/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"lint:fix": "pnpm prettier --write && pnpm eslint --fix",
2222
"eslint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
2323
"prettier": "prettier \"**/*.{ts,js,md,json}\"",
24-
"test": "node --import tsx/esm --test --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
25-
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
26-
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@voxpelli/node-test-pretty-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
24+
"test": "node --import tsx/esm --test --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
25+
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
26+
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@nomicfoundation/hardhat-node-test-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
2727
"pretest": "pnpm build",
2828
"build": "tsc --build .",
2929
"prepublishOnly": "pnpm build",
@@ -40,11 +40,11 @@
4040
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
4141
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "workspace:^",
4242
"@nomicfoundation/eslint-plugin-slow-imports": "workspace:^",
43+
"@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0",
4344
"@reporters/github": "^1.7.0",
4445
"@types/node": "^20.0.0",
4546
"@typescript-eslint/eslint-plugin": "^7.7.1",
4647
"@typescript-eslint/parser": "^7.7.1",
47-
"@voxpelli/node-test-pretty-reporter": "^1.1.1",
4848
"eslint": "8.57.0",
4949
"eslint-config-prettier": "9.1.0",
5050
"eslint-import-resolver-typescript": "^3.6.1",

v-next/hardhat-node-test-reporter/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
"lint:fix": "pnpm prettier --write && pnpm eslint --fix",
2121
"eslint": "eslint \"src/**/*.ts\" \"test/**/*.ts\" \"integration-tests/**/*.ts\"",
2222
"prettier": "prettier \"**/*.{ts,js,md,json}\"",
23-
"test": "glob --cmd=\"node --import tsx/esm --test\" \"test/**/*.ts\"",
24-
"test:github": "glob --cmd=\"node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout\" \"test/**/*.ts\"",
23+
"test": "node --import tsx/esm --test \"test/**/*.ts\"",
24+
"test:only": "node --import tsx/esm --test --test-only \"test/**/*.ts\"",
25+
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout \"test/**/*.ts\"",
2526
"test:integration": "node --import tsx/esm integration-tests/index.ts --color",
2627
"posttest": "pnpm test:integration",
2728
"posttest:github": "pnpm test:integration",
@@ -51,7 +52,6 @@
5152
"eslint-plugin-import": "2.29.1",
5253
"eslint-plugin-no-only-tests": "3.1.0",
5354
"expect-type": "^0.19.0",
54-
"glob": "^10.3.12",
5555
"prettier": "3.2.5",
5656
"rimraf": "^5.0.5",
5757
"tsx": "^4.7.1",

v-next/hardhat-utils/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"lint:fix": "pnpm prettier --write && pnpm eslint --fix",
3333
"eslint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
3434
"prettier": "prettier \"**/*.{ts,js,md,json}\"",
35-
"test": "node --import tsx/esm --test --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
36-
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
37-
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@voxpelli/node-test-pretty-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
35+
"test": "node --import tsx/esm --test --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
36+
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
37+
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@nomicfoundation/hardhat-node-test-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
3838
"pretest": "pnpm build",
3939
"build": "tsc --build .",
4040
"prepublishOnly": "pnpm build",
@@ -51,13 +51,13 @@
5151
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
5252
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "workspace:^",
5353
"@nomicfoundation/eslint-plugin-slow-imports": "workspace:^",
54+
"@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0",
5455
"@reporters/github": "^1.7.0",
5556
"@types/bn.js": "^5.1.5",
5657
"@types/keccak": "^3.0.4",
5758
"@types/node": "^20.0.0",
5859
"@typescript-eslint/eslint-plugin": "^7.7.1",
5960
"@typescript-eslint/parser": "^7.7.1",
60-
"@voxpelli/node-test-pretty-reporter": "^1.1.1",
6161
"eslint": "8.57.0",
6262
"eslint-config-prettier": "9.1.0",
6363
"eslint-import-resolver-typescript": "^3.6.1",

v-next/hardhat-zod-utils/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"lint:fix": "pnpm prettier --write && pnpm eslint --fix",
2222
"eslint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
2323
"prettier": "prettier \"**/*.{ts,js,md,json}\"",
24-
"test": "node --import tsx/esm --test --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
25-
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
26-
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@voxpelli/node-test-pretty-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
24+
"test": "node --import tsx/esm --test --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
25+
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
26+
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@nomicfoundation/hardhat-node-test-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
2727
"pretest": "pnpm build",
2828
"build": "tsc --build .",
2929
"prepublishOnly": "pnpm build",
@@ -41,11 +41,11 @@
4141
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "workspace:^",
4242
"@nomicfoundation/eslint-plugin-slow-imports": "workspace:^",
4343
"@nomicfoundation/hardhat-core": "workspace:^3.0.0",
44+
"@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0",
4445
"@reporters/github": "^1.7.0",
4546
"@types/node": "^20.0.0",
4647
"@typescript-eslint/eslint-plugin": "^7.7.1",
4748
"@typescript-eslint/parser": "^7.7.1",
48-
"@voxpelli/node-test-pretty-reporter": "^1.1.1",
4949
"eslint": "8.57.0",
5050
"eslint-config-prettier": "9.1.0",
5151
"eslint-import-resolver-typescript": "^3.6.1",

v-next/hardhat/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"lint:fix": "pnpm prettier --write && pnpm eslint --fix",
3636
"eslint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
3737
"prettier": "prettier \"**/*.{ts,js,md,json}\"",
38-
"test": "node --import tsx/esm --test --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
39-
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
40-
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@voxpelli/node-test-pretty-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
38+
"test": "node --import tsx/esm --test --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
39+
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
40+
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@nomicfoundation/hardhat-node-test-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
4141
"pretest": "pnpm build",
4242
"build": "tsc --build .",
4343
"prepublishOnly": "pnpm build",
@@ -54,11 +54,11 @@
5454
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
5555
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "workspace:^",
5656
"@nomicfoundation/eslint-plugin-slow-imports": "workspace:^",
57+
"@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0",
5758
"@reporters/github": "^1.7.0",
5859
"@types/node": "^20.0.0",
5960
"@typescript-eslint/eslint-plugin": "^7.7.1",
6061
"@typescript-eslint/parser": "^7.7.1",
61-
"@voxpelli/node-test-pretty-reporter": "^1.1.1",
6262
"eslint": "8.57.0",
6363
"eslint-config-prettier": "9.1.0",
6464
"eslint-import-resolver-typescript": "^3.6.1",

v-next/template-package/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"lint:fix": "pnpm prettier --write && pnpm eslint --fix",
2424
"eslint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
2525
"prettier": "prettier \"**/*.{ts,js,md,json}\"",
26-
"test": "node --import tsx/esm --test --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
27-
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@voxpelli/node-test-pretty-reporter \"test/**/*.ts\"",
28-
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@voxpelli/node-test-pretty-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
26+
"test": "node --import tsx/esm --test --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
27+
"test:only": "node --import tsx/esm --test --test-only --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/**/*.ts\"",
28+
"test:github": "node --import tsx/esm --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=@nomicfoundation/hardhat-node-test-reporter --test-reporter-destination=stdout \"test/**/*.ts\"",
2929
"pretest": "pnpm build",
3030
"build": "tsc --build .",
3131
"prepublishOnly": "pnpm build",
@@ -42,11 +42,11 @@
4242
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
4343
"@nomicfoundation/eslint-plugin-hardhat-internal-rules": "workspace:^",
4444
"@nomicfoundation/eslint-plugin-slow-imports": "workspace:^",
45+
"@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0",
4546
"@reporters/github": "^1.7.0",
4647
"@types/node": "^20.0.0",
4748
"@typescript-eslint/eslint-plugin": "^7.7.1",
4849
"@typescript-eslint/parser": "^7.7.1",
49-
"@voxpelli/node-test-pretty-reporter": "^1.1.1",
5050
"eslint": "8.57.0",
5151
"eslint-config-prettier": "9.1.0",
5252
"eslint-import-resolver-typescript": "^3.6.1",

0 commit comments

Comments
 (0)