@@ -29,7 +29,7 @@ describe('TypeScript Watch API', () => {
29
29
errors = await driver . waitForErrors ( ) ;
30
30
expect ( errors ) . toEqual ( [
31
31
[
32
- 'ERROR in src/index.ts: 34:7' ,
32
+ 'ERROR in ./ src/index.ts 34:7-28 ' ,
33
33
`TS2367: This condition will always return 'false' since the types 'Role' and '"admin"' have no overlap.` ,
34
34
' 32 | const user = await login(email, password);' ,
35
35
' 33 |' ,
@@ -71,7 +71,7 @@ describe('TypeScript Watch API', () => {
71
71
) ;
72
72
expect ( errors ) . toEqual ( [
73
73
[
74
- 'ERROR in src/model/User.ts: 1:22' ,
74
+ 'ERROR in ./ src/model/User.ts 1:22-30 ' ,
75
75
"TS2307: Cannot find module './Role' or its corresponding type declarations." ,
76
76
" > 1 | import { Role } from './Role';" ,
77
77
' | ^^^^^^^^' ,
@@ -91,7 +91,7 @@ describe('TypeScript Watch API', () => {
91
91
errors = await driver . waitForErrors ( ) ;
92
92
expect ( errors ) . toEqual ( [
93
93
[
94
- 'ERROR in src/index.ts: 34:7' ,
94
+ 'ERROR in ./ src/index.ts 34:7-31 ' ,
95
95
"TS2367: This condition will always return 'false' since the types 'Role' and '\"provider\"' have no overlap." ,
96
96
' 32 | const user = await login(email, password);' ,
97
97
' 33 |' ,
@@ -132,7 +132,7 @@ describe('TypeScript Watch API', () => {
132
132
errors = await driver . waitForErrors ( ) ;
133
133
expect ( errors ) . toEqual ( [
134
134
[
135
- 'ERROR in src/index.ts: 34:7' ,
135
+ 'ERROR in ./ src/index.ts 34:7-28 ' ,
136
136
`TS2367: This condition will always return 'false' since the types 'Role' and '"admin"' have no overlap.` ,
137
137
' 32 | const user = await login(email, password);' ,
138
138
' 33 |' ,
@@ -174,7 +174,7 @@ describe('TypeScript Watch API', () => {
174
174
) ;
175
175
expect ( errors ) . toEqual ( [
176
176
[
177
- 'ERROR in src/model/User.ts: 1:22' ,
177
+ 'ERROR in ./ src/model/User.ts 1:22-30 ' ,
178
178
"TS2307: Cannot find module './Role' or its corresponding type declarations." ,
179
179
" > 1 | import { Role } from './Role';" ,
180
180
' | ^^^^^^^^' ,
@@ -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' ,
197
+ 'ERROR in ./ src/index.ts 34:7-31 ' ,
198
198
"TS2367: This condition will always return 'false' since the types 'Role' and '\"provider\"' have no overlap." ,
199
199
' 32 | const user = await login(email, password);' ,
200
200
' 33 |' ,
@@ -238,7 +238,7 @@ describe('TypeScript Watch API', () => {
238
238
errors = await driver . waitForErrors ( ) ;
239
239
expect ( errors ) . toEqual ( [
240
240
[
241
- 'ERROR in src/model/User.ts: 11:16' ,
241
+ 'ERROR in ./ src/model/User.ts 11:16-25 ' ,
242
242
"TS2339: Property 'firstName' does not exist on type 'User'." ,
243
243
' 9 |' ,
244
244
' 10 | function getUserName(user: User): string {' ,
@@ -249,7 +249,7 @@ describe('TypeScript Watch API', () => {
249
249
' 14 | export { User, getUserName };' ,
250
250
] . join ( '\n' ) ,
251
251
[
252
- 'ERROR in src/model/User.ts: 11:32' ,
252
+ 'ERROR in ./ src/model/User.ts 11:32-40 ' ,
253
253
"TS2339: Property 'lastName' does not exist on type 'User'." ,
254
254
' 9 |' ,
255
255
' 10 | function getUserName(user: User): string {' ,
@@ -276,7 +276,7 @@ describe('TypeScript Watch API', () => {
276
276
errors = await driver . waitForErrors ( ) ;
277
277
expect ( errors ) . toContain (
278
278
[
279
- 'ERROR in src/index.ts: 1:23' ,
279
+ 'ERROR in ./ src/index.ts 1:23-39 ' ,
280
280
"TS2307: Cannot find module './authenticate'." ,
281
281
" > 1 | import { login } from './authenticate';" ,
282
282
' | ^^^^^^^^^^^^^^^^' ,
@@ -320,7 +320,7 @@ describe('TypeScript Watch API', () => {
320
320
errors = await driver . waitForErrors ( ) ;
321
321
expect ( errors ) . toEqual ( [
322
322
[
323
- 'ERROR in src/index.ts: 34:12' ,
323
+ 'ERROR in ./ src/index.ts 34:12-16 ' ,
324
324
"TS2339: Property 'role' does not exist on type 'void'." ,
325
325
' 32 | const user = await login(email, password);' ,
326
326
' 33 |' ,
@@ -331,7 +331,7 @@ describe('TypeScript Watch API', () => {
331
331
' 37 | console.log(`Logged in as ${getUserName(user)}`);' ,
332
332
] . join ( '\n' ) ,
333
333
[
334
- 'ERROR in src/index.ts: 35:45' ,
334
+ 'ERROR in ./ src/index.ts 35:45-49 ' ,
335
335
"TS2345: Argument of type 'void' is not assignable to parameter of type 'User'." ,
336
336
' 33 |' ,
337
337
" 34 | if (user.role === 'admin') {" ,
@@ -342,7 +342,7 @@ describe('TypeScript Watch API', () => {
342
342
' 38 | }' ,
343
343
] . join ( '\n' ) ,
344
344
[
345
- 'ERROR in src/index.ts: 37:45' ,
345
+ 'ERROR in ./ src/index.ts 37:45-49 ' ,
346
346
"TS2345: Argument of type 'void' is not assignable to parameter of type 'User'." ,
347
347
' 35 | console.log(`Logged in as ${getUserName(user)} [admin].`);' ,
348
348
' 36 | } else {' ,
0 commit comments