Skip to content

Commit

Permalink
chore: improve the test cancelled message
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Sep 5, 2024
1 parent 8cc0da8 commit 8dbbcb1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
10) should pass, too


2 passing (145ms)
2 passing (143ms)
4 failing
4 cancelled

Expand Down Expand Up @@ -56,13 +56,13 @@
should pass:

Test cancelled by parent error
 This test was cancelled due to an error in its parent suite/it or test/it, or in one of its before/beforeEach
 This test was cancelled due to an error in its parent describe or before hook

7) before
should pass, too:

Test cancelled by parent error
 This test was cancelled due to an error in its parent suite/it or test/it, or in one of its before/beforeEach
 This test was cancelled due to an error in its parent describe or before hook

8) before:

Expand All @@ -73,13 +73,13 @@
should pass:

Test cancelled by parent error
 This test was cancelled due to an error in its parent suite/it or test/it, or in one of its before/beforeEach
 This test was cancelled due to an error in its parent describe or before hook

10) describe
should pass, too:

Test cancelled by parent error
 This test was cancelled due to an error in its parent suite/it or test/it, or in one of its before/beforeEach
 This test was cancelled due to an error in its parent describe or before hook

11) describe:

Expand Down
2 changes: 1 addition & 1 deletion v-next/hardhat-node-test-reporter/src/error-formatting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function formatError(error: Error): string {
"\n" +
chalk.gray(
indent(
"This test was cancelled due to an error in its parent suite/it or test/it, or in one of its before/beforeEach",
"This test was cancelled due to an error in its parent describe or before hook",
4,
),
)
Expand Down

0 comments on commit 8dbbcb1

Please sign in to comment.