Add snapshot tests

This commit is contained in:
Guille Gonzalez
2026-01-10 18:01:38 +01:00
parent 00d93de457
commit 339f20a34b
8 changed files with 146 additions and 2 deletions

View File

@@ -14,7 +14,9 @@ let package = Package(
products: [
.library(name: "SwiftUIMath", targets: ["SwiftUIMath"])
],
dependencies: [],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.18.7")
],
targets: [
.target(
name: "SwiftUIMath",
@@ -23,7 +25,11 @@ let package = Package(
),
.testTarget(
name: "SwiftUIMathTests",
dependencies: ["SwiftUIMath"]
dependencies: [
"SwiftUIMath",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
],
exclude: ["__Snapshots__"]
),
]
)