Skip to content

Commit 2776073

Browse files
authored
Update package name (#555)
* Update package name * wip
1 parent 3ab2f21 commit 2776073

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Foundation
33
import PackageDescription
44

55
let package = Package(
6-
name: "SnapshotTesting",
6+
name: "swift-snapshot-testing",
77
platforms: [
88
.iOS(.v11),
99
.macOS(.v10_10),

README.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,25 @@ If you want to use SnapshotTesting in any other project that uses [SwiftPM](http
143143

144144
```swift
145145
dependencies: [
146-
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.9.0"),
146+
.package(
147+
url: "https://github.com/pointfreeco/swift-snapshot-testing.git",
148+
from: "1.9.0"
149+
),
147150
]
148151
```
149152

150153
Next, add `SnapshotTesting` as a dependency of your test target:
151154

152155
```swift
153156
targets: [
154-
.target(name: "MyApp", dependencies: [], path: "Sources"),
155-
.testTarget(name: "MyAppTests", dependencies: ["MyApp", "SnapshotTesting"])
157+
.target(name: "MyApp"),
158+
.testTarget(
159+
name: "MyAppTests",
160+
dependencies: [
161+
"MyApp",
162+
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
163+
]
164+
)
156165
]
157166
```
158167

0 commit comments

Comments
 (0)