mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: clarify updateSourceMethod (#34314)
This commit is contained in:
parent
9a9d22af44
commit
fe96104ce2
@ -594,10 +594,10 @@ export default defineConfig({
|
|||||||
* since: v1.50
|
* since: v1.50
|
||||||
- type: ?<[UpdateSourceMethod]<"overwrite"|"3way"|"patch">>
|
- type: ?<[UpdateSourceMethod]<"overwrite"|"3way"|"patch">>
|
||||||
|
|
||||||
Defines how to update the source code snapshots.
|
Defines how to update snapshots in the source code.
|
||||||
* `'overwrite'` - Overwrite the source code snapshot with the actual result.
|
* `'patch'` - Create a unified diff file that can be used to update the source code later. This is the default.
|
||||||
* `'3way'` - Use a three-way merge to update the source code snapshot.
|
* `'3way'` - Generate merge conflict markers in source code. This allows user to manually pick relevant changes, as if they are resolving a merge conflict in the IDE.
|
||||||
* `'patch'` - Use a patch to update the source code snapshot. This is the default.
|
* `'overwrite'` - Overwrite the source code with the new snapshot values.
|
||||||
|
|
||||||
## property: TestConfig.use
|
## property: TestConfig.use
|
||||||
* since: v1.10
|
* since: v1.10
|
||||||
|
|||||||
9
packages/playwright/types/test.d.ts
vendored
9
packages/playwright/types/test.d.ts
vendored
@ -1689,10 +1689,11 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
|
|||||||
updateSnapshots?: "all"|"changed"|"missing"|"none";
|
updateSnapshots?: "all"|"changed"|"missing"|"none";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines how to update the source code snapshots.
|
* Defines how to update snapshots in the source code.
|
||||||
* - `'overwrite'` - Overwrite the source code snapshot with the actual result.
|
* - `'patch'` - Create a unified diff file that can be used to update the source code later. This is the default.
|
||||||
* - `'3way'` - Use a three-way merge to update the source code snapshot.
|
* - `'3way'` - Generate merge conflict markers in source code. This allows user to manually pick relevant changes,
|
||||||
* - `'patch'` - Use a patch to update the source code snapshot. This is the default.
|
* as if they are resolving a merge conflict in the IDE.
|
||||||
|
* - `'overwrite'` - Overwrite the source code with the new snapshot values.
|
||||||
*/
|
*/
|
||||||
updateSourceMethod?: "overwrite"|"3way"|"patch";
|
updateSourceMethod?: "overwrite"|"3way"|"patch";
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user