@@ -34,7 +34,7 @@ describe("ApiClient", () => {
34
34
} ,
35
35
} ) ;
36
36
37
- // @ts -ignore - accessing private property for testing
37
+ // @ts -expect-error accessing private property for testing
38
38
apiClient . getAccessToken = jest . fn ( ) . mockResolvedValue ( "mockToken" ) ;
39
39
} ) ;
40
40
@@ -65,7 +65,7 @@ describe("ApiClient", () => {
65
65
response : new Response ( ) ,
66
66
} ) ) ;
67
67
68
- // @ts -ignore - accessing private property for testing
68
+ // @ts -expect-error accessing private property for testing
69
69
apiClient . client . GET = mockGet ;
70
70
71
71
const result = await apiClient . listProjects ( ) ;
@@ -86,7 +86,7 @@ describe("ApiClient", () => {
86
86
response : new Response ( ) ,
87
87
} ) ) ;
88
88
89
- // @ts -ignore - accessing private property for testing
89
+ // @ts -expect-error accessing private property for testing
90
90
apiClient . client . GET = mockGet ;
91
91
92
92
await expect ( apiClient . listProjects ( ) ) . rejects . toThrow ( ) ;
@@ -117,7 +117,7 @@ describe("ApiClient", () => {
117
117
const mockFetch = jest . spyOn ( global , "fetch" ) ;
118
118
mockFetch . mockResolvedValueOnce ( new Response ( null , { status : 200 } ) ) ;
119
119
120
- // @ts -ignore - accessing private property for testing
120
+ // @ts -expect-error accessing private property for testing
121
121
apiClient . getAccessToken = jest . fn ( ) . mockResolvedValue ( undefined ) ;
122
122
123
123
await apiClient . sendEvents ( mockEvents ) ;
@@ -162,7 +162,7 @@ describe("ApiClient", () => {
162
162
. mockResolvedValueOnce ( new Response ( null , { status : 500 } ) ) ;
163
163
164
164
const mockToken = "test-token" ;
165
- // @ts -ignore - accessing private property for testing
165
+ // @ts -expect-error accessing private property for testing
166
166
apiClient . getAccessToken = jest . fn ( ) . mockResolvedValue ( mockToken ) ;
167
167
168
168
await expect ( apiClient . sendEvents ( mockEvents ) ) . rejects . toThrow ( ) ;
0 commit comments