We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f093b9 commit 6134b03Copy full SHA for 6134b03
Examples/Testing/Tests/HandlerTests.swift
@@ -32,11 +32,9 @@ public struct HandlerTest {
32
public func invokeHandler() async throws {
33
34
// read event.json file
35
- let testBundle = Bundle.module
36
- guard let eventURL = testBundle.url(forResource: "event", withExtension: "json") else {
37
- Issue.record("event.json not found in test bundle")
38
- return
39
- }
+ let eventURL = URL(fileURLWithPath: #filePath)
+ .deletingLastPathComponent()
+ .appendingPathComponent("event.json")
40
let eventData = try Data(contentsOf: eventURL)
41
42
// decode the event
0 commit comments