Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored and github-actions[bot] committed Aug 1, 2024
1 parent 8105068 commit e883fc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Sources/SnapshotTesting/AssertSnapshot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,9 @@ public func verifySnapshot<Value, Format>(
func recordSnapshot() throws {
try snapshotting.diffing.toData(diffable).write(to: snapshotFileUrl)
#if !os(Linux) && !os(Windows)
if
!isSwiftTesting,
if !isSwiftTesting,
ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS")
{
{
XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
activity.add(attachment)
Expand Down
6 changes: 3 additions & 3 deletions Sources/SnapshotTesting/Internal/RecordIssue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import XCTest
#endif

var isSwiftTesting: Bool {
#if canImport(Testing)
return Test.current != nil
#if canImport(Testing)
return Test.current != nil
#else
return false
return false
#endif
}

Expand Down

0 comments on commit e883fc9

Please sign in to comment.