Skip to content

Commit 9003825

Browse files
authored
docs: add --update-source-method option for snapshot updates in test-cli-js (#34448)
1 parent ab3b4b8 commit 9003825

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/src/test-cli-js.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,6 @@ Complete set of Playwright Test options is available in the [configuration file]
111111
| `--ui-host <host>` | Host to serve UI on; specifying this option opens UI in a browser tab. |
112112
| `--ui-port <port>` | Port to serve UI on, 0 for any free port; specifying this option opens UI in a browser tab. |
113113
| `-u` or `--update-snapshots [mode]` | Update snapshots with actual results. Possible values are "all", "changed", "missing", and "none". Not passing defaults to "missing"; passing without a value defaults to "changed". |
114+
| `--update-source-method [mode]` | Update snapshots with actual results. Possible values are "patch" (default), "3way" and "overwrite". "Patch" creates a unified diff file that can be used to update the source code later. "3way" generates merge conflict markers in source code. "Overwrite" overwrites the source code with the new snapshot values.|
114115
| `-j <workers>` or `--workers <workers>` | Number of concurrent workers or percentage of logical CPU cores, use 1 to run in a single worker (default: 50%). |
115116
| `-x` | Stop after the first failure. |

0 commit comments

Comments
 (0)