We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecbb206 commit 35757f5Copy full SHA for 35757f5
1 file changed
Tests/TextDiffTests/SnapshotTestSupport.swift
@@ -3,6 +3,9 @@ import SnapshotTesting
3
import SwiftUI
4
import TextDiff
5
6
+private let snapshotPrecision: Float = 0.995
7
+private let snapshotPerceptualPrecision: Float = 0.98
8
+
9
@MainActor
10
func assertTextDiffSnapshot(
11
original: String,
@@ -35,7 +38,10 @@ func assertTextDiffSnapshot(
35
38
36
39
assertSnapshot(
37
40
of: snapshotImage,
- as: .image,
41
+ as: .image(
42
+ precision: snapshotPrecision,
43
+ perceptualPrecision: snapshotPerceptualPrecision
44
+ ),
45
named: name,
46
fileID: fileID,
47
file: filePath,
0 commit comments