From 5088856aa92a0f3d7da62b27ecd65c31d8037143 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 12 Jul 2025 10:39:31 +0800 Subject: [PATCH] Update diff tool to use odiff --- Example/OpenSwiftUIUITests/Export.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Example/OpenSwiftUIUITests/Export.swift b/Example/OpenSwiftUIUITests/Export.swift index a454a941f..319387856 100644 --- a/Example/OpenSwiftUIUITests/Export.swift +++ b/Example/OpenSwiftUIUITests/Export.swift @@ -12,4 +12,10 @@ let shouldRecord: Bool? = nil @_exported import SwiftUI let shouldRecord: Bool? = true #endif -let diffTool: SnapshotTestingConfiguration.DiffTool = .default +let diffTool: SnapshotTestingConfiguration.DiffTool = .odiff + +extension SnapshotTestingConfiguration.DiffTool { + static let odiff = Self { + "odiff \"\($0)\" \"\($1)\"" + } +}