I added a unit test that gets about 70% code coverage. It at least verifies that views get mapped and pushes and pops correctly update the internal paths array.
Of course, the actual Views aren't tested, which would be trickier. There are some libraries out there that do that for SwiftUI views, such as ViewInspector.
I added a unit test that gets about 70% code coverage. It at least verifies that views get mapped and pushes and pops correctly update the internal paths array.
Of course, the actual Views aren't tested, which would be trickier. There are some libraries out there that do that for SwiftUI views, such as ViewInspector.