Skip to content

Commit 4702415

Browse files
authored
Update diff tool to use odiff (#378)
1 parent 47ac888 commit 4702415

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Example/OpenSwiftUIUITests/Export.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ let shouldRecord: Bool? = nil
1212
@_exported import SwiftUI
1313
let shouldRecord: Bool? = true
1414
#endif
15-
let diffTool: SnapshotTestingConfiguration.DiffTool = .default
15+
let diffTool: SnapshotTestingConfiguration.DiffTool = .odiff
16+
17+
extension SnapshotTestingConfiguration.DiffTool {
18+
static let odiff = Self {
19+
"odiff \"\($0)\" \"\($1)\""
20+
}
21+
}

0 commit comments

Comments
 (0)