You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For extremely large snapshot files, the diff algorithm is not very efficient. Until the algorithm can be modified to work with large files, there is now a --snapshot-diff-mode=disabled flag that can be specified to disable diffing on snapshot assertion failures.
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,7 @@ These are the cli options exposed to `pytest` by the plugin.
139
139
|`--snapshot-default-extension`| Use to change the default snapshot extension class. |[AmberSnapshotExtension](https://github.com/syrupy-project/syrupy/blob/main/src/syrupy/extensions/amber/__init__.py)|
140
140
|`--snapshot-no-colors`| Disable test results output highlighting. Equivalent to setting the environment variables `ANSI_COLORS_DISABLED` or `NO_COLOR`| Disabled by default if not in terminal. |
141
141
|`--snapshot-patch-pycharm-diff`| Override PyCharm's default diffs viewer when looking at snapshot diffs. See [IDE Integrations](#ide-integrations)|`False`|
142
+
|`--snapshot-diff-mode`| Configures how diffs are displayed on assertion failure. If working with very large snapshots, disabling the diff can improve performance. |`detailed`|
0 commit comments