adammcarter / adammcarter/swift-snapshot-testing-macros
Use lazy properties for types like SnapshotSuite.TestBlock.IfConfig?
Open
enhancement
- Dominant language
- Swift
- Stars
- 59
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
We won't always have an if config so always setting these values on init is wasteful
Contributor guide
Research direction
Locate SnapshotSuite.TestBlock.IfConfig and the related type properties, then inspect how they are initialized. Confirm which values are optional or unused when no if config exists; done means those values are created lazily without changing snapshot test behavior, with the relevant test suite still passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- testing
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100