Skip to content

Instantly share code, notes, and snippets.

@brunomunizaf
Last active November 23, 2020 02:00
Show Gist options
  • Save brunomunizaf/64070c143ebb5caa4319c05fcd162cdd to your computer and use it in GitHub Desktop.
Save brunomunizaf/64070c143ebb5caa4319c05fcd162cdd to your computer and use it in GitHub Desktop.
import XCTest
import SnapshotTesting
@testable import myapp
final class ScreenTests: XCTestCase {
var sut: Screen!
override func setup() {
sut = Screen()
}
func test_screenSnapshot() {
assertSnapshot(matching: sut, as: .image(on: .iPhone8))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment