Skip to content

Commit 3b639df

Browse files
committed
. d Add code snippet references
1 parent c9ef77f commit 3b639df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The new XCTestCase method relies on a TestableView type to define the hook for V
5454

5555
### Production code
5656

57-
1. Copy [TestableView.swift](https://github.com/jonreid/TestableView/blob/main/TestableView.swift) into your production code.
57+
1. Copy [TestableView.swift](https://github.com/jonreid/TestableView/blob/main/TestableView.swift) into your production code. You can also [subscribe to my blog](https://qualitycoding.org/subscribe-swiftui-tdd/), install the custom code snippets, and expand “testableview” into a new file.
5858
2. Redefine your View as a `TestableView`. Xcode will tell you how to define your hook property.
5959
3. Make sure to call the hook at the end of your view:
6060

@@ -68,7 +68,7 @@ The new XCTestCase method relies on a TestableView type to define the hook for V
6868

6969
### Test code
7070

71-
1. Copy [InspectChangingView.swift](https://github.com/jonreid/TestableView/blob/main/InspectChangingView.swift) into your test code.
71+
1. Copy [InspectChangingView.swift](https://github.com/jonreid/TestableView/blob/main/InspectChangingView.swift) into your test code. You can also [subscribe to my blog](https://qualitycoding.org/subscribe-swiftui-tdd/), install the custom code snippets, and expand “inspectchange” into a new file.
7272
2. Change the `YourModule` placeholder so it does an `@testable import` from the module that defines `TestableView`.
7373

7474
## Use it in your test

0 commit comments

Comments
 (0)