@@ -29,7 +29,7 @@ describe('TypeScript Watch API', () => {
2929 errors = await driver . waitForErrors ( ) ;
3030 expect ( errors ) . toEqual ( [
3131 [
32- 'ERROR in src/index.ts: 34:7' ,
32+ 'ERROR in ./ src/index.ts 34:7-28 ' ,
3333 `TS2367: This condition will always return 'false' since the types 'Role' and '"admin"' have no overlap.` ,
3434 ' 32 | const user = await login(email, password);' ,
3535 ' 33 |' ,
@@ -71,7 +71,7 @@ describe('TypeScript Watch API', () => {
7171 ) ;
7272 expect ( errors ) . toEqual ( [
7373 [
74- 'ERROR in src/model/User.ts: 1:22' ,
74+ 'ERROR in ./ src/model/User.ts 1:22-30 ' ,
7575 "TS2307: Cannot find module './Role' or its corresponding type declarations." ,
7676 " > 1 | import { Role } from './Role';" ,
7777 ' | ^^^^^^^^' ,
@@ -91,7 +91,7 @@ describe('TypeScript Watch API', () => {
9191 errors = await driver . waitForErrors ( ) ;
9292 expect ( errors ) . toEqual ( [
9393 [
94- 'ERROR in src/index.ts: 34:7' ,
94+ 'ERROR in ./ src/index.ts 34:7-31 ' ,
9595 "TS2367: This condition will always return 'false' since the types 'Role' and '\"provider\"' have no overlap." ,
9696 ' 32 | const user = await login(email, password);' ,
9797 ' 33 |' ,
@@ -132,7 +132,7 @@ describe('TypeScript Watch API', () => {
132132 errors = await driver . waitForErrors ( ) ;
133133 expect ( errors ) . toEqual ( [
134134 [
135- 'ERROR in src/index.ts: 34:7' ,
135+ 'ERROR in ./ src/index.ts 34:7-28 ' ,
136136 `TS2367: This condition will always return 'false' since the types 'Role' and '"admin"' have no overlap.` ,
137137 ' 32 | const user = await login(email, password);' ,
138138 ' 33 |' ,
@@ -174,7 +174,7 @@ describe('TypeScript Watch API', () => {
174174 ) ;
175175 expect ( errors ) . toEqual ( [
176176 [
177- 'ERROR in src/model/User.ts: 1:22' ,
177+ 'ERROR in ./ src/model/User.ts 1:22-30 ' ,
178178 "TS2307: Cannot find module './Role' or its corresponding type declarations." ,
179179 " > 1 | import { Role } from './Role';" ,
180180 ' | ^^^^^^^^' ,
@@ -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' ,
197+ 'ERROR in ./ src/index.ts 34:7-31 ' ,
198198 "TS2367: This condition will always return 'false' since the types 'Role' and '\"provider\"' have no overlap." ,
199199 ' 32 | const user = await login(email, password);' ,
200200 ' 33 |' ,
@@ -238,7 +238,7 @@ describe('TypeScript Watch API', () => {
238238 errors = await driver . waitForErrors ( ) ;
239239 expect ( errors ) . toEqual ( [
240240 [
241- 'ERROR in src/model/User.ts: 11:16' ,
241+ 'ERROR in ./ src/model/User.ts 11:16-25 ' ,
242242 "TS2339: Property 'firstName' does not exist on type 'User'." ,
243243 ' 9 |' ,
244244 ' 10 | function getUserName(user: User): string {' ,
@@ -249,7 +249,7 @@ describe('TypeScript Watch API', () => {
249249 ' 14 | export { User, getUserName };' ,
250250 ] . join ( '\n' ) ,
251251 [
252- 'ERROR in src/model/User.ts: 11:32' ,
252+ 'ERROR in ./ src/model/User.ts 11:32-40 ' ,
253253 "TS2339: Property 'lastName' does not exist on type 'User'." ,
254254 ' 9 |' ,
255255 ' 10 | function getUserName(user: User): string {' ,
@@ -276,7 +276,7 @@ describe('TypeScript Watch API', () => {
276276 errors = await driver . waitForErrors ( ) ;
277277 expect ( errors ) . toContain (
278278 [
279- 'ERROR in src/index.ts: 1:23' ,
279+ 'ERROR in ./ src/index.ts 1:23-39 ' ,
280280 "TS2307: Cannot find module './authenticate'." ,
281281 " > 1 | import { login } from './authenticate';" ,
282282 ' | ^^^^^^^^^^^^^^^^' ,
@@ -320,7 +320,7 @@ describe('TypeScript Watch API', () => {
320320 errors = await driver . waitForErrors ( ) ;
321321 expect ( errors ) . toEqual ( [
322322 [
323- 'ERROR in src/index.ts: 34:12' ,
323+ 'ERROR in ./ src/index.ts 34:12-16 ' ,
324324 "TS2339: Property 'role' does not exist on type 'void'." ,
325325 ' 32 | const user = await login(email, password);' ,
326326 ' 33 |' ,
@@ -331,7 +331,7 @@ describe('TypeScript Watch API', () => {
331331 ' 37 | console.log(`Logged in as ${getUserName(user)}`);' ,
332332 ] . join ( '\n' ) ,
333333 [
334- 'ERROR in src/index.ts: 35:45' ,
334+ 'ERROR in ./ src/index.ts 35:45-49 ' ,
335335 "TS2345: Argument of type 'void' is not assignable to parameter of type 'User'." ,
336336 ' 33 |' ,
337337 " 34 | if (user.role === 'admin') {" ,
@@ -342,7 +342,7 @@ describe('TypeScript Watch API', () => {
342342 ' 38 | }' ,
343343 ] . join ( '\n' ) ,
344344 [
345- 'ERROR in src/index.ts: 37:45' ,
345+ 'ERROR in ./ src/index.ts 37:45-49 ' ,
346346 "TS2345: Argument of type 'void' is not assignable to parameter of type 'User'." ,
347347 ' 35 | console.log(`Logged in as ${getUserName(user)} [admin].`);' ,
348348 ' 36 | } else {' ,
0 commit comments