Skip to content

Commit 228fb81

Browse files
authored
feat(tap): provide --test-reporter=tap as default nodeArg (#5302)
Provide `--test-reporter=tap` as default in `tap.nodeArgs`, as the default changed in node23 to 'spec'.
1 parent 6bcacdc commit 228fb81

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/tap-runner.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ Specify [glob expressions](./config-file.md#glob-patterns) to your test files. B
5959
| Version | Changes |
6060
| ------- | --------------------------------------------------------- |
6161
| 7.1 | Add `{{hookFile}}` and `{{testFile}}` placeholder support |
62+
| 9.0 | Changed default to include `--test-reporter=tap` |
6263

6364
</details>
6465

65-
Default: `["-r", "{{hookFile}}", "{{testFile}}"]`
66+
Default: `["--test-reporter=tap", "-r", "{{hookFile}}", "{{testFile}}"]`
6667

6768
Specify node arguments to be used when running the tests. You can use the following placeholders:
6869

packages/tap-runner/schema/tap-runner-options.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"items": {
2626
"type": "string"
2727
},
28-
"default": ["-r", "{{hookFile}}", "{{testFile}}"]
28+
"default": ["--test-reporter=tap", "-r", "{{hookFile}}", "{{testFile}}"]
2929
},
3030
"forceBail": {
3131
"description": "Force a running test process to hard-exit after first bail test failure when disableBail is false.",

0 commit comments

Comments
 (0)