// swift-tools-version: 6.0
// T-iOS-16 integration-CI package: Swift Testing suites against the REAL Node
// server (self-bootstrapped by ServerHarness — spawns `tsx src/server.ts` on an
// ephemeral loopback port; see ServerHarness.swift for the run modes).
// Flat layout (plan §2): test sources live directly in ios/IntegrationTests/.
// `scripts/` holds the per-package coverage gate used by .github/workflows/ios.yml.
import PackageDescription

let package = Package(
    name: "IntegrationTests",
    platforms: [.iOS(.v17), .macOS(.v14)],
    dependencies: [
        .package(path: "../Packages/WireProtocol"),
    ],
    targets: [
        .testTarget(
            name: "IntegrationTests",
            dependencies: [.product(name: "WireProtocol", package: "WireProtocol")],
            path: ".",
            exclude: ["scripts"]
        ),
    ],
    swiftLanguageModes: [.v6]
)
