You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repo is an experimental use of this branch(https://github.com/pointfreeco/swift-snapshot-testing/pull/904) that contains a PluginAPI for `swift-snapshot-testing`.
6
+
7
+
The goal of this is to show how easy it is to build a plugin.
8
+
9
+
## Usage
10
+
11
+
- Add this project to dependencies inside your `Package.swift` -> `.package(url: "https://github.com/mackoj/swift-snapshot-testing-plugin-heic.git", revision: "0.0.1"),`.
12
+
- Then add this to your test target `.product(name: "HEICImageSerializer", package: "swift-snapshot-testing-plugin-heic"),`.
13
+
- Then add this to the top of your test file `import HEICImageSerializer` and in the `setUp()` add this `SnapshotTesting.imageFormat = HEICImageSerializer.imageFormat`.
14
+
15
+
## TODO
16
+
17
+
-[ ] use [libjxl](https://github.com/libjxl/libjxl) instead of [JXLCoder]([url](https://github.com/awxkee/jxl-coder-swift.git)).
18
+
-[ ] make the API ready for Swift 6 and async/throwing functions
0 commit comments