Skip to content

Build the test target in Swift 6 and use the unused response code - #103

Merged
dadachi merged 1 commit into
mainfrom
chore/tests-swift-6
Oct 15, 2026
Merged

dadachi merged 1 commit into
mainfrom
chore/tests-swift-6

Conversation

@dadachi

@dadachi dadachi commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • NativeAppTemplateTests moves from Swift 5 to Swift 6 (Debug, Release), matching the app target. No test changes were needed
  • ShopCreateViewModelTest uses its httpResponseCode constant (unused-variable warning)

A clean build of the app and tests now has no compiler warnings. Ported from MyTurnTagCreator-iOS #150 and #151 (the Sentry and billing parts don't apply to the Free template).

Test plan

  • Clean build + full test run on a physical iPhone: 437 tests in 68 suites passed (1 expected known issue in WaitUntilTest), no compiler warnings
  • make lint passes

🤖 Generated with Claude Code

https://claude.ai/code/session_01YDK5huvuRECyVrsQEdTN9q

The app target was already Swift 6, but NativeAppTemplateTests was still
Swift 5, so data-race diagnostics in tests were only warnings and the two
targets could infer different types from the same closure spelling. The
tests already build without errors in Swift 6.

ShopCreateViewModelTest declared httpResponseCode but passed a literal
422; it now passes the constant.

Ported from MyTurnTagCreator-iOS #150 and #151.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDK5huvuRECyVrsQEdTN9q
@dadachi
dadachi merged commit 122a2aa into main Oct 15, 2026
2 checks passed
@dadachi
dadachi deleted the chore/tests-swift-6 branch October 15, 2026 11:22
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.

1 participant