@@ -20,7 +20,7 @@ class ValidationTestCase: XCTestCase {
2020 func assertValid(
2121 _ query: String ,
2222 schema: GraphQLSchema = ValidationExampleSchema,
23- file: StaticString = #file ,
23+ file: StaticString = #filePath ,
2424 line: UInt = #line
2525 ) throws {
2626 let errors = try validate ( body: query, schema: schema)
@@ -37,7 +37,7 @@ class ValidationTestCase: XCTestCase {
3737 errorCount: Int ,
3838 query: String ,
3939 schema: GraphQLSchema = ValidationExampleSchema,
40- file: StaticString = #file ,
40+ file: StaticString = #filePath ,
4141 line: UInt = #line
4242 ) throws -> [ GraphQLError ] {
4343 let errors = try validate ( body: query, schema: schema)
@@ -57,7 +57,7 @@ class ValidationTestCase: XCTestCase {
5757 column: Int ,
5858 path: String = " " ,
5959 message: String ,
60- testFile: StaticString = #file ,
60+ testFile: StaticString = #filePath ,
6161 testLine: UInt = #line
6262 ) throws {
6363 guard let error = error else {
@@ -94,7 +94,7 @@ class ValidationTestCase: XCTestCase {
9494 locations: [ ( line: Int , column: Int ) ] ,
9595 path: String = " " ,
9696 message: String ,
97- testFile: StaticString = #file ,
97+ testFile: StaticString = #filePath ,
9898 testLine: UInt = #line
9999 ) throws {
100100 guard let error = error else {
@@ -139,7 +139,7 @@ class SDLValidationTestCase: XCTestCase {
139139 _ sdlStr: String ,
140140 schema: GraphQLSchema ? = nil ,
141141 _ errors: [ GraphQLError ] ,
142- testFile _: StaticString = #file ,
142+ testFile _: StaticString = #filePath ,
143143 testLine _: UInt = #line
144144 ) throws {
145145 let doc = try parse ( source: sdlStr)
0 commit comments