Skip to content

Commit 755c51a

Browse files
doc: revert snapshot testing version changes
Revert snapshot testing related items back to v22.3.0 as snapshot testing was never backported to v20.x. Only context.fullName was backported to v20.16.0. - Reverted ## Snapshot testing to v22.3.0 - Reverted ## snapshot to v22.3.0 - Reverted snapshot.setDefaultSnapshotSerializers to v22.3.0 - Reverted snapshot.setResolveSnapshotPath to v22.3.0 - Reverted context.assert.snapshot to v22.3.0 - Kept fullName properties with YAML list format (v22.3.0 and v20.16.0)
1 parent c55c962 commit 755c51a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/test.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ test('runs timers as setTime passes ticks', (context) => {
10451045
## Snapshot testing
10461046

10471047
<!-- YAML
1048-
added: v20.16.0
1048+
added: v22.3.0
10491049
changes:
10501050
- version: v23.4.0
10511051
pr-url: https://github.com/nodejs/node/pull/55897
@@ -1915,7 +1915,7 @@ assertion already exists with the same name, it is overwritten.
19151915
## `snapshot`
19161916

19171917
<!-- YAML
1918-
added: v20.16.0
1918+
added: v22.3.0
19191919
-->
19201920

19211921
An object whose methods are used to configure default snapshot settings in the
@@ -1926,7 +1926,7 @@ placing common configuration code in a module preloaded with `--require` or
19261926
### `snapshot.setDefaultSnapshotSerializers(serializers)`
19271927

19281928
<!-- YAML
1929-
added: v20.16.0
1929+
added: v22.3.0
19301930
-->
19311931

19321932
* `serializers` {Array} An array of synchronous functions used as the default
@@ -1941,7 +1941,7 @@ more robust serialization mechanism is required, this function should be used.
19411941
### `snapshot.setResolveSnapshotPath(fn)`
19421942

19431943
<!-- YAML
1944-
added: v20.16.0
1944+
added: v22.3.0
19451945
-->
19461946

19471947
* `fn` {Function} A function used to compute the location of the snapshot file.
@@ -3602,7 +3602,7 @@ highlighting.
36023602
#### `context.assert.snapshot(value[, options])`
36033603

36043604
<!-- YAML
3605-
added: v20.16.0
3605+
added: v22.3.0
36063606
-->
36073607

36083608
* `value` {any} A value to serialize to a string. If Node.js was started with

0 commit comments

Comments
 (0)