Skip to content

Commit

Permalink
Use one instance of rendering strategy (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsmartin authored Oct 2, 2024
1 parent 94e16f9 commit fc7a10d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SnapshottingTests/SnapshotTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ open class SnapshotTest: PreviewBaseTest, PreviewFilters {
}
#endif
}
private let renderingStrategy = getRenderingStrategy()
private static let renderingStrategy = getRenderingStrategy()

static private var previews: [SnapshotPreviewsCore.PreviewType] = []

Expand Down Expand Up @@ -79,7 +79,7 @@ open class SnapshotTest: PreviewBaseTest, PreviewFilters {

var result: SnapshotResult? = nil
let expectation = XCTestExpectation()
renderingStrategy.render(preview: preview) { snapshotResult in
Self.renderingStrategy.render(preview: preview) { snapshotResult in
result = snapshotResult
expectation.fulfill()
}
Expand Down

0 comments on commit fc7a10d

Please sign in to comment.