-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathInternal.swift
More file actions
36 lines (33 loc) · 886 Bytes
/
Internal.swift
File metadata and controls
36 lines (33 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import CustomDump
import Foundation
import SQLiteData
import SwiftUI
import Testing
@testable import Reminders
@Suite(
.dependency(\.continuousClock, ImmediateClock()),
.dependency(\.date.now, Date(timeIntervalSince1970: 1_234_567_890)),
.dependency(\.uuid, .incrementing),
.dependencies {
try $0.bootstrapDatabase()
try $0.defaultDatabase.seed()
try await $0.defaultSyncEngine.sendChanges()
},
.snapshots(record: .failed)
)
struct BaseTestSuite {}
// NB: SwiftUI colors are not consistently dumped across simulators.
extension RemindersList: @retroactive CustomDumpReflectable {
public var customDumpMirror: Mirror {
Mirror(
self,
children: [
"id": id,
"color": Color.HexRepresentation(queryOutput: color).hexValue ?? 0,
"position": position,
"title": title,
],
displayStyle: .struct
)
}
}