Skip to content

Commit 8f9215c

Browse files
committed
fix(Tests): Add bootstrap() call to tests
1 parent 6cee35f commit 8f9215c

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Tests/CombineNavigationTests/RoutingControllerStackTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import Combine
77
#if canImport(UIKit) && !os(watchOS)
88

99
final class RoutingControllerStackTests: XCTestCase {
10+
static override func setUp() {
11+
CombineNavigation.bootstrap()
12+
}
13+
1014
func testNavigationStack() {
1115
let viewModel = StackViewModel()
1216
let controller = StackViewController()

Tests/CombineNavigationTests/RoutingControllerTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import SwiftUI
1111
// TODO: Add test for `navigationStack(_:ids:route:switch:onDismiss:)`")
1212
// TODO: Add test for `navigationDestination(_:isPresented:controller:onDismiss:)`")
1313
final class RoutingControllerTests: XCTestCase {
14+
static override func setUp() {
15+
CombineNavigation.bootstrap()
16+
}
17+
1418
func testMain() {
1519
let root = StackViewController()
1620
let viewModel = StackViewModel(initialState: .init())

Tests/CombineNavigationTests/RoutingControllerTreeTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import Combine
77
#if canImport(UIKit) && !os(watchOS)
88

99
final class RoutingControllerTreeTests: XCTestCase {
10+
static override func setUp() {
11+
CombineNavigation.bootstrap()
12+
}
13+
1014
func testNavigationTree() {
1115
let viewModel = TreeViewModel()
1216
let controller = TreeViewController()

0 commit comments

Comments
 (0)