@@ -20,7 +20,7 @@ class ValidationTestCase: XCTestCase {
20
20
func assertValid(
21
21
_ query: String ,
22
22
schema: GraphQLSchema = ValidationExampleSchema,
23
- file: StaticString = #file ,
23
+ file: StaticString = #filePath ,
24
24
line: UInt = #line
25
25
) throws {
26
26
let errors = try validate ( body: query, schema: schema)
@@ -37,7 +37,7 @@ class ValidationTestCase: XCTestCase {
37
37
errorCount: Int ,
38
38
query: String ,
39
39
schema: GraphQLSchema = ValidationExampleSchema,
40
- file: StaticString = #file ,
40
+ file: StaticString = #filePath ,
41
41
line: UInt = #line
42
42
) throws -> [ GraphQLError ] {
43
43
let errors = try validate ( body: query, schema: schema)
@@ -57,7 +57,7 @@ class ValidationTestCase: XCTestCase {
57
57
column: Int ,
58
58
path: String = " " ,
59
59
message: String ,
60
- testFile: StaticString = #file ,
60
+ testFile: StaticString = #filePath ,
61
61
testLine: UInt = #line
62
62
) throws {
63
63
guard let error = error else {
@@ -94,7 +94,7 @@ class ValidationTestCase: XCTestCase {
94
94
locations: [ ( line: Int , column: Int ) ] ,
95
95
path: String = " " ,
96
96
message: String ,
97
- testFile: StaticString = #file ,
97
+ testFile: StaticString = #filePath ,
98
98
testLine: UInt = #line
99
99
) throws {
100
100
guard let error = error else {
@@ -139,7 +139,7 @@ class SDLValidationTestCase: XCTestCase {
139
139
_ sdlStr: String ,
140
140
schema: GraphQLSchema ? = nil ,
141
141
_ errors: [ GraphQLError ] ,
142
- testFile _: StaticString = #file ,
142
+ testFile _: StaticString = #filePath ,
143
143
testLine _: UInt = #line
144
144
) throws {
145
145
let doc = try parse ( source: sdlStr)
0 commit comments