adammcarter / adammcarter/swift-snapshot-testing-macros

Use lazy properties for types like SnapshotSuite.TestBlock.IfConfig?

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.