Skip to content

Commit

Permalink
Serialize and synchronize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marinofelipe committed Dec 30, 2024
1 parent 359cc8e commit 2dcff65
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 169 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"object": {
"pins": [
{
"package": "swift-concurrency-extras",
"repositoryURL": "https://github.com/pointfreeco/swift-concurrency-extras",
"state": {
"branch": null,
"revision": "82a4ae7170d98d8538ec77238b7eb8e7199ef2e8",
"version": "1.3.1"
}
},
{
"package": "SnapshotTesting",
"repositoryURL": "https://github.com/pointfreeco/swift-snapshot-testing",
Expand Down
10 changes: 9 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ let package = Package(
.upToNextMinor(
from: .init(1, 9, 0)
)
),
.package(
name: "ConcurrencyExtras",
url: "https://github.com/pointfreeco/swift-concurrency-extras",
.upToNextMinor(
from: .init(1, 3, 1)
)
)
],
targets: [
Expand Down Expand Up @@ -86,7 +93,8 @@ let package = Package(
name: "CurrencyTextFieldTests",
dependencies: [
.target(name: "CurrencyTextField"),
.target(name: "CurrencyTextFieldTestSupport")
.target(name: "CurrencyTextFieldTestSupport"),
.product(name: "ConcurrencyExtras", package: "ConcurrencyExtras")
],
path: "Tests/SwiftUI"
),
Expand Down
1 change: 1 addition & 0 deletions Tests/SwiftUI/CurrencyTextFieldConfigurationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import CurrencyTextFieldTestSupport
@testable import CurrencyTextField

@available(iOS 13.0, *)
@MainActor
final class CurrencyTextFieldConfigurationTests: XCTestCase {

Check warning on line 18 in Tests/SwiftUI/CurrencyTextFieldConfigurationTests.swift

View workflow job for this annotation

GitHub Actions / Test

main actor-isolated class 'CurrencyTextFieldConfigurationTests' has different actor isolation from nonisolated superclass 'XCTestCase'; this is an error in Swift 6
func testMakeDefault() {
let textBinding = Binding<String>(
Expand Down
Loading

0 comments on commit 2dcff65

Please sign in to comment.