-
Notifications
You must be signed in to change notification settings - Fork 17
Add tests #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add tests #235
Conversation
| ), | ||
| .testTarget( | ||
| name: "SnapshotPreviewsTests", | ||
| dependencies: ["SnapshotPreviewsCore", "SnapshotPreferences"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reformatted this file via swiftlint (can revert if you want) and added some dependencies for our testTarget.
| } | ||
| } | ||
|
|
||
| private enum RuntimeCache { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order for the tests to work (since the test bundle code loads first), I had to refactor this to lazily initialize after the first access is made.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this can we just move these static properties right into EmergeModifierView? Would be better not to have new types like this.
Also I think the finderClass can still be it's own static variable so that line doesn't have to be duplicated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, done.
No description provided.