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([mackoj:feat/imageSerializer](https://github.com/mackoj/swift-snapshot-testing/tree/feat/imageSerializer)) that contains a PluginAPI for `swift-snapshot-testing`.
4
+
5
+
The goal of this is to show how easy it is to build a plugin.
6
+
7
+
## Usage
8
+
9
+
- Add this project to dependencies inside your `Package.swift` -> `.package(url: "https://github.com/mackoj/swift-snapshot-testing-plugin-webp.git", revision: "0.0.1"),`.
10
+
- Then add this to your test target `.product(name: "WEBPImageSerializer", package: "swift-snapshot-testing-plugin-webp"),`.
11
+
- Then add this to the top of your test file `import WEBPImageSerializer` and in the `setUp()` add this `SnapshotTesting.imageFormat = WEBPImageSerializer.imageFormat`.
12
+
13
+
## TODO
14
+
15
+
-[ ] use [libjxl](https://github.com/libjxl/libjxl) instead of [JXLCoder]([url](https://github.com/awxkee/jxl-coder-swift.git)).
16
+
-[ ] make the API ready for Swift 6 and async/throwing functions
0 commit comments