Use #fileID/#filePath instead of #file (#28)

Motivation:

#fileID introduced in Swift 5.3, so no longer need to use #file anywhere

Modifications:

Changed #file to #filePath or #fileID depending on the situation
This commit is contained in:
carolinacass authored and GitHub committed 2022-11-03 11:57:57 +00:00
1 parent 521f0418e6
commit 0a03f062c9
1 file changed
+1 -1
@@ -15,7 +15,7 @@ import Foundation
enum FixturesLoader {
private static var fixturesDirectory: URL {
let myURL = URL(fileURLWithPath: #file, isDirectory: false)
let myURL = URL(fileURLWithPath: #filePath, isDirectory: false)
return URL(string: "../TestFixtures/", relativeTo: myURL)!.absoluteURL
}