@@ -73,7 +73,7 @@ describe('TypeScript Watch API', () => {
7373 errors = await driver . waitForErrors ( ) ;
7474 expect ( errors ) . toEqual ( [
7575 [
76- 'ERROR in src/index.ts 34:7-28 ' ,
76+ 'ERROR in src/index.ts: 34:7' ,
7777 `TS2367: This condition will always return 'false' since the types 'Role' and '"admin"' have no overlap.` ,
7878 ' 32 | const user = await login(email, password);' ,
7979 ' 33 | ' ,
@@ -115,7 +115,7 @@ describe('TypeScript Watch API', () => {
115115 ) ;
116116 expect ( errors ) . toEqual ( [
117117 [
118- 'ERROR in src/model/User.ts 1:22-30 ' ,
118+ 'ERROR in src/model/User.ts: 1:22' ,
119119 "TS2307: Cannot find module './Role'." ,
120120 " > 1 | import { Role } from './Role';" ,
121121 ' | ^^^^^^^^' ,
@@ -135,7 +135,7 @@ describe('TypeScript Watch API', () => {
135135 errors = await driver . waitForErrors ( ) ;
136136 expect ( errors ) . toEqual ( [
137137 [
138- 'ERROR in src/index.ts 34:7-31 ' ,
138+ 'ERROR in src/index.ts: 34:7' ,
139139 "TS2367: This condition will always return 'false' since the types 'Role' and '\"provider\"' have no overlap." ,
140140 ' 32 | const user = await login(email, password);' ,
141141 ' 33 | ' ,
@@ -194,7 +194,7 @@ describe('TypeScript Watch API', () => {
194194 errors = await driver . waitForErrors ( ) ;
195195 expect ( errors ) . toEqual ( [
196196 [
197- 'ERROR in src/index.ts 34:7-28 ' ,
197+ 'ERROR in src/index.ts: 34:7' ,
198198 `TS2367: This condition will always return 'false' since the types 'Role' and '"admin"' have no overlap.` ,
199199 ' 32 | const user = await login(email, password);' ,
200200 ' 33 | ' ,
@@ -236,7 +236,7 @@ describe('TypeScript Watch API', () => {
236236 ) ;
237237 expect ( errors ) . toEqual ( [
238238 [
239- 'ERROR in src/model/User.ts 1:22-30 ' ,
239+ 'ERROR in src/model/User.ts: 1:22' ,
240240 "TS2307: Cannot find module './Role'." ,
241241 " > 1 | import { Role } from './Role';" ,
242242 ' | ^^^^^^^^' ,
@@ -256,7 +256,7 @@ describe('TypeScript Watch API', () => {
256256 errors = await driver . waitForErrors ( ) ;
257257 expect ( errors ) . toEqual ( [
258258 [
259- 'ERROR in src/index.ts 34:7-31 ' ,
259+ 'ERROR in src/index.ts: 34:7' ,
260260 "TS2367: This condition will always return 'false' since the types 'Role' and '\"provider\"' have no overlap." ,
261261 ' 32 | const user = await login(email, password);' ,
262262 ' 33 | ' ,
@@ -308,7 +308,7 @@ describe('TypeScript Watch API', () => {
308308 errors = await driver . waitForErrors ( ) ;
309309 expect ( errors ) . toEqual ( [
310310 [
311- 'ERROR in src/model/User.ts 11:16-25 ' ,
311+ 'ERROR in src/model/User.ts: 11:16' ,
312312 "TS2339: Property 'firstName' does not exist on type 'User'." ,
313313 ' 9 | ' ,
314314 ' 10 | function getUserName(user: User): string {' ,
@@ -319,7 +319,7 @@ describe('TypeScript Watch API', () => {
319319 ' 14 | }' ,
320320 ] . join ( '\n' ) ,
321321 [
322- 'ERROR in src/model/User.ts 11:32-40 ' ,
322+ 'ERROR in src/model/User.ts: 11:32' ,
323323 "TS2339: Property 'lastName' does not exist on type 'User'." ,
324324 ' 9 | ' ,
325325 ' 10 | function getUserName(user: User): string {' ,
@@ -350,7 +350,7 @@ describe('TypeScript Watch API', () => {
350350 errors = await driver . waitForErrors ( ) ;
351351 expect ( errors ) . toEqual ( [
352352 [
353- 'ERROR in src/index.ts 1:23-39 ' ,
353+ 'ERROR in src/index.ts: 1:23' ,
354354 "TS2307: Cannot find module './authenticate'." ,
355355 " > 1 | import { login } from './authenticate';" ,
356356 ' | ^^^^^^^^^^^^^^^^' ,
@@ -394,7 +394,7 @@ describe('TypeScript Watch API', () => {
394394 errors = await driver . waitForErrors ( ) ;
395395 expect ( errors ) . toEqual ( [
396396 [
397- 'ERROR in src/index.ts 34:12-16 ' ,
397+ 'ERROR in src/index.ts: 34:12' ,
398398 "TS2339: Property 'role' does not exist on type 'void'." ,
399399 ' 32 | const user = await login(email, password);' ,
400400 ' 33 | ' ,
@@ -405,7 +405,7 @@ describe('TypeScript Watch API', () => {
405405 ' 37 | console.log(`Logged in as ${getUserName(user)}`);' ,
406406 ] . join ( '\n' ) ,
407407 [
408- 'ERROR in src/index.ts 35:45-49 ' ,
408+ 'ERROR in src/index.ts: 35:45' ,
409409 "TS2345: Argument of type 'void' is not assignable to parameter of type 'User'." ,
410410 ' 33 | ' ,
411411 " 34 | if (user.role === 'admin') {" ,
@@ -416,7 +416,7 @@ describe('TypeScript Watch API', () => {
416416 ' 38 | }' ,
417417 ] . join ( '\n' ) ,
418418 [
419- 'ERROR in src/index.ts 37:45-49 ' ,
419+ 'ERROR in src/index.ts: 37:45' ,
420420 "TS2345: Argument of type 'void' is not assignable to parameter of type 'User'." ,
421421 ' 35 | console.log(`Logged in as ${getUserName(user)} [admin].`);' ,
422422 ' 36 | } else {' ,
0 commit comments