Skip to content

Commit

Permalink
Move the newline after building to the test tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Oct 29, 2024
1 parent 5ea6092 commit 8e1bfa2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions v-next/hardhat-mocha-test-runner/src/task-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const testWithHardhat: NewTaskActionFunction<TestActionArguments> = async (
) => {
if (!noCompile) {
await hre.tasks.getTask("compile").run({});
console.log();
}

const files = await getTestFiles(testFiles, hre.config);
Expand Down
1 change: 1 addition & 0 deletions v-next/hardhat-node-test-runner/src/task-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const testWithHardhat: NewTaskActionFunction<TestActionArguments> = async (
) => {
if (!noCompile) {
await hre.tasks.getTask("compile").run({});
console.log();
}

const files = await getTestFiles(testFiles, hre.config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const runSolidityTests: NewTaskActionFunction<TestActionArguments> = async (
) => {
if (!noCompile) {
await hre.tasks.getTask("compile").run({});
console.log();
}

const artifacts = await getArtifacts(hre.artifacts);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ export class SolidityBuildSystemImplementation implements SolidityBuildSystem {
if (isSuccessfulBuild) {
this.#printCompilationResult(compilationJobs);
}

console.log();
}

return resultsMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const runAllTests: NewTaskActionFunction<TestActionArguments> = async (

if (!noCompile) {
await hre.tasks.getTask("compile").run({});
console.log();
}

for (const subtask of thisTask.subtasks.values()) {
Expand Down

0 comments on commit 8e1bfa2

Please sign in to comment.