Skip to content

Conversation

@trevor-e
Copy link
Contributor

No description provided.

),
.testTarget(
name: "SnapshotPreviewsTests",
dependencies: ["SnapshotPreviewsCore", "SnapshotPreferences"]
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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.

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants