Skip to content

Commit 141174d

Browse files
Add test explanation
1 parent 0fd6555 commit 141174d

File tree

1 file changed

+6
-0
lines changed
  • v-next/hardhat/test/internal/cli/telemetry/analytics

1 file changed

+6
-0
lines changed

v-next/hardhat/test/internal/cli/telemetry/analytics/analytics.ts

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ import {
1616
ROOT_PATH_TO_FIXTURE,
1717
} from "../helpers.js";
1818

19+
//
20+
// TEST EXPLANATION: When setting the environment variable HARDHAT_TEST_SUBPROCESS_RESULT_PATH,
21+
// the subprocess writes the payload to the specified file instead of sending it to a remote server.
22+
// This allows us to verify that the payload is formatted correctly.
23+
//
24+
1925
const PATH_TO_FIXTURE = path.join(ROOT_PATH_TO_FIXTURE, "analytics");
2026
const RESULT_FILE_PATH = path.join(PATH_TO_FIXTURE, "result.json");
2127

0 commit comments

Comments
 (0)