Skip to content

Commit 01e2c8a

Browse files
authored
docs: document numeric values of PLAYWRIGHT_FORCE_TTY (microsoft#31653)
Fixes microsoft#31647
1 parent b13bd66 commit 01e2c8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/test-reporters-js.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ List report supports the following configuration options and environment variabl
102102
| Environment Variable Name | Reporter Config Option| Description | Default
103103
|---|---|---|---|
104104
| `PLAYWRIGHT_LIST_PRINT_STEPS` | `printSteps` | Whether to print each step on its own line. | `false`
105-
| `PLAYWRIGHT_FORCE_TTY` | | Whether to produce output suitable for a live terminal. | `true` when terminal is in TTY mode, `false` otherwise.
105+
| `PLAYWRIGHT_FORCE_TTY` | | Whether to produce output suitable for a live terminal. If a number is specifed, it will also be used as the terminal width. | `true` when terminal is in TTY mode, `false` otherwise.
106106
| `FORCE_COLOR` | | Whether to produce colored output. | `true` when terminal is in TTY mode, `false` otherwise.
107107

108108

@@ -140,7 +140,7 @@ Line report supports the following configuration options and environment variabl
140140

141141
| Environment Variable Name | Reporter Config Option| Description | Default
142142
|---|---|---|---|
143-
| `PLAYWRIGHT_FORCE_TTY` | | Whether to produce output suitable for a live terminal. | `true` when terminal is in TTY mode, `false` otherwise.
143+
| `PLAYWRIGHT_FORCE_TTY` | | Whether to produce output suitable for a live terminal. If a number is specifed, it will also be used as the terminal width. | `true` when terminal is in TTY mode, `false` otherwise.
144144
| `FORCE_COLOR` | | Whether to produce colored output. | `true` when terminal is in TTY mode, `false` otherwise.
145145

146146

@@ -182,7 +182,7 @@ Dot report supports the following configuration options and environment variable
182182

183183
| Environment Variable Name | Reporter Config Option| Description | Default
184184
|---|---|---|---|
185-
| `PLAYWRIGHT_FORCE_TTY` | | Whether to produce output suitable for a live terminal. | `true` when terminal is in TTY mode, `false` otherwise.
185+
| `PLAYWRIGHT_FORCE_TTY` | | Whether to produce output suitable for a live terminal. If a number is specifed, it will also be used as the terminal width. | `true` when terminal is in TTY mode, `false` otherwise.
186186
| `FORCE_COLOR` | | Whether to produce colored output. | `true` when terminal is in TTY mode, `false` otherwise.
187187

188188
### HTML reporter

0 commit comments

Comments
 (0)