-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test_runner: default to spec reporter when on TTY environment
PR-URL: #46969 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
- Loading branch information
Showing
4 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
'use strict'; | ||
process.env.FORCE_COLOR = '1'; | ||
delete process.env.NODE_DISABLE_COLORS; | ||
delete process.env.NO_COLOR; | ||
|
||
require('../common'); | ||
const test = require('node:test'); | ||
|
||
test('should pass', () => {}); | ||
test('should fail', () => { throw new Error('fail'); }); | ||
test('should skip', { skip: true }, () => {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[32m* should pass [90m(*ms)[39m[39m | ||
[31m* should fail [90m(*ms)[39m | ||
Error: fail | ||
at * [90m(*)[39m | ||
[90m at *[39m | ||
[90m at *[39m | ||
[90m at *[39m | ||
[90m at *[39m | ||
[90m at *[39m | ||
[90m at *[39m | ||
** | ||
[90m* should skip [90m(*ms)[39m # SKIP[39m | ||
[34m* tests 3[39m | ||
[34m* pass 1[39m | ||
[34m* fail 1[39m | ||
[34m* cancelled 0[39m | ||
[34m* skipped 1[39m | ||
[34m* todo 0[39m | ||
[34m* duration_ms *[39m |