diff --git a/Package.swift b/Package.swift index 0518486d2..84180f8ab 100644 --- a/Package.swift +++ b/Package.swift @@ -3,7 +3,7 @@ import Foundation import PackageDescription let package = Package( - name: "SnapshotTesting", + name: "swift-snapshot-testing", platforms: [ .iOS(.v11), .macOS(.v10_10), diff --git a/README.md b/README.md index 18b663846..b5add82d0 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,10 @@ If you want to use SnapshotTesting in any other project that uses [SwiftPM](http ```swift dependencies: [ - .package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.9.0"), + .package( + url: "https://github.com/pointfreeco/swift-snapshot-testing.git", + from: "1.9.0" + ), ] ``` @@ -151,8 +154,14 @@ Next, add `SnapshotTesting` as a dependency of your test target: ```swift targets: [ - .target(name: "MyApp", dependencies: [], path: "Sources"), - .testTarget(name: "MyAppTests", dependencies: ["MyApp", "SnapshotTesting"]) + .target(name: "MyApp"), + .testTarget( + name: "MyAppTests", + dependencies: [ + "MyApp", + .product(name: "SnapshotTesting", package: "swift-snapshot-testing"), + ] + ) ] ```