Open komyg opened 5 months ago
In Package.swift
:
.testTarget(
name: "SdkTests",
dependencies: [
"Sdk",
.product(name: "OHHTTPStubs", package: "OHHTTPStubs"),
.product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs")
]
)
in your unit test:
import OHHTTPStubs
import OHHTTPStubsSwift
New Issue Checklist
OHHTTPStubs
for your project sectionEnvironment
Issue Description
Hi, I am trying to use OHHHTTPStubs in my tests, but they are failing.
Since I am using the Swift Package Manager, I've added OHHTTPStubs as a dependency:
Then I created a very basic test:
However, when I try to run it, I get this error:
If I remove the
import OHHTTPStubsSwift
, I get these errors:I am new to Swift. Could you help me?