@@ -73,7 +73,7 @@ describe('TypeScript Watch API', () => {
73
73
errors = await driver . waitForErrors ( ) ;
74
74
expect ( errors ) . toEqual ( [
75
75
[
76
- 'ERROR in src/index.ts 34:7-28 ' ,
76
+ 'ERROR in src/index.ts: 34:7' ,
77
77
`TS2367: This condition will always return 'false' since the types 'Role' and '"admin"' have no overlap.` ,
78
78
' 32 | const user = await login(email, password);' ,
79
79
' 33 | ' ,
@@ -115,7 +115,7 @@ describe('TypeScript Watch API', () => {
115
115
) ;
116
116
expect ( errors ) . toEqual ( [
117
117
[
118
- 'ERROR in src/model/User.ts 1:22-30 ' ,
118
+ 'ERROR in src/model/User.ts: 1:22' ,
119
119
"TS2307: Cannot find module './Role'." ,
120
120
" > 1 | import { Role } from './Role';" ,
121
121
' | ^^^^^^^^' ,
@@ -135,7 +135,7 @@ describe('TypeScript Watch API', () => {
135
135
errors = await driver . waitForErrors ( ) ;
136
136
expect ( errors ) . toEqual ( [
137
137
[
138
- 'ERROR in src/index.ts 34:7-31 ' ,
138
+ 'ERROR in src/index.ts: 34:7' ,
139
139
"TS2367: This condition will always return 'false' since the types 'Role' and '\"provider\"' have no overlap." ,
140
140
' 32 | const user = await login(email, password);' ,
141
141
' 33 | ' ,
@@ -194,7 +194,7 @@ describe('TypeScript Watch API', () => {
194
194
errors = await driver . waitForErrors ( ) ;
195
195
expect ( errors ) . toEqual ( [
196
196
[
197
- 'ERROR in src/index.ts 34:7-28 ' ,
197
+ 'ERROR in src/index.ts: 34:7' ,
198
198
`TS2367: This condition will always return 'false' since the types 'Role' and '"admin"' have no overlap.` ,
199
199
' 32 | const user = await login(email, password);' ,
200
200
' 33 | ' ,
@@ -236,7 +236,7 @@ describe('TypeScript Watch API', () => {
236
236
) ;
237
237
expect ( errors ) . toEqual ( [
238
238
[
239
- 'ERROR in src/model/User.ts 1:22-30 ' ,
239
+ 'ERROR in src/model/User.ts: 1:22' ,
240
240
"TS2307: Cannot find module './Role'." ,
241
241
" > 1 | import { Role } from './Role';" ,
242
242
' | ^^^^^^^^' ,
@@ -256,7 +256,7 @@ describe('TypeScript Watch API', () => {
256
256
errors = await driver . waitForErrors ( ) ;
257
257
expect ( errors ) . toEqual ( [
258
258
[
259
- 'ERROR in src/index.ts 34:7-31 ' ,
259
+ 'ERROR in src/index.ts: 34:7' ,
260
260
"TS2367: This condition will always return 'false' since the types 'Role' and '\"provider\"' have no overlap." ,
261
261
' 32 | const user = await login(email, password);' ,
262
262
' 33 | ' ,
@@ -308,7 +308,7 @@ describe('TypeScript Watch API', () => {
308
308
errors = await driver . waitForErrors ( ) ;
309
309
expect ( errors ) . toEqual ( [
310
310
[
311
- 'ERROR in src/model/User.ts 11:16-25 ' ,
311
+ 'ERROR in src/model/User.ts: 11:16' ,
312
312
"TS2339: Property 'firstName' does not exist on type 'User'." ,
313
313
' 9 | ' ,
314
314
' 10 | function getUserName(user: User): string {' ,
@@ -319,7 +319,7 @@ describe('TypeScript Watch API', () => {
319
319
' 14 | }' ,
320
320
] . join ( '\n' ) ,
321
321
[
322
- 'ERROR in src/model/User.ts 11:32-40 ' ,
322
+ 'ERROR in src/model/User.ts: 11:32' ,
323
323
"TS2339: Property 'lastName' does not exist on type 'User'." ,
324
324
' 9 | ' ,
325
325
' 10 | function getUserName(user: User): string {' ,
@@ -350,7 +350,7 @@ describe('TypeScript Watch API', () => {
350
350
errors = await driver . waitForErrors ( ) ;
351
351
expect ( errors ) . toEqual ( [
352
352
[
353
- 'ERROR in src/index.ts 1:23-39 ' ,
353
+ 'ERROR in src/index.ts: 1:23' ,
354
354
"TS2307: Cannot find module './authenticate'." ,
355
355
" > 1 | import { login } from './authenticate';" ,
356
356
' | ^^^^^^^^^^^^^^^^' ,
@@ -394,7 +394,7 @@ describe('TypeScript Watch API', () => {
394
394
errors = await driver . waitForErrors ( ) ;
395
395
expect ( errors ) . toEqual ( [
396
396
[
397
- 'ERROR in src/index.ts 34:12-16 ' ,
397
+ 'ERROR in src/index.ts: 34:12' ,
398
398
"TS2339: Property 'role' does not exist on type 'void'." ,
399
399
' 32 | const user = await login(email, password);' ,
400
400
' 33 | ' ,
@@ -405,7 +405,7 @@ describe('TypeScript Watch API', () => {
405
405
' 37 | console.log(`Logged in as ${getUserName(user)}`);' ,
406
406
] . join ( '\n' ) ,
407
407
[
408
- 'ERROR in src/index.ts 35:45-49 ' ,
408
+ 'ERROR in src/index.ts: 35:45' ,
409
409
"TS2345: Argument of type 'void' is not assignable to parameter of type 'User'." ,
410
410
' 33 | ' ,
411
411
" 34 | if (user.role === 'admin') {" ,
@@ -416,7 +416,7 @@ describe('TypeScript Watch API', () => {
416
416
' 38 | }' ,
417
417
] . join ( '\n' ) ,
418
418
[
419
- 'ERROR in src/index.ts 37:45-49 ' ,
419
+ 'ERROR in src/index.ts: 37:45' ,
420
420
"TS2345: Argument of type 'void' is not assignable to parameter of type 'User'." ,
421
421
' 35 | console.log(`Logged in as ${getUserName(user)} [admin].`);' ,
422
422
' 36 | } else {' ,
0 commit comments