@@ -32,7 +32,7 @@ describe('TypeScript Watch API', () => {
32
32
errors = await driver . waitForErrors ( ) ;
33
33
expect ( errors ) . toEqual ( [
34
34
[
35
- 'ERROR in ./src/index.ts 34:7-28 ' ,
35
+ 'ERROR in ./src/index.ts: 34:7' ,
36
36
`TS2367: This condition will always return 'false' since the types 'Role' and '"admin"' have no overlap.` ,
37
37
' 32 | const user = await login(email, password);' ,
38
38
' 33 |' ,
@@ -74,7 +74,7 @@ describe('TypeScript Watch API', () => {
74
74
) ;
75
75
expect ( errors ) . toEqual ( [
76
76
[
77
- 'ERROR in ./src/model/User.ts 1:22-30 ' ,
77
+ 'ERROR in ./src/model/User.ts: 1:22' ,
78
78
"TS2307: Cannot find module './Role' or its corresponding type declarations." ,
79
79
" > 1 | import { Role } from './Role';" ,
80
80
' | ^^^^^^^^' ,
@@ -94,7 +94,7 @@ describe('TypeScript Watch API', () => {
94
94
errors = await driver . waitForErrors ( ) ;
95
95
expect ( errors ) . toEqual ( [
96
96
[
97
- 'ERROR in ./src/index.ts 34:7-31 ' ,
97
+ 'ERROR in ./src/index.ts: 34:7' ,
98
98
"TS2367: This condition will always return 'false' since the types 'Role' and '\"provider\"' have no overlap." ,
99
99
' 32 | const user = await login(email, password);' ,
100
100
' 33 |' ,
@@ -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-28 ' ,
138
+ 'ERROR in ./src/index.ts: 34:7' ,
139
139
`TS2367: This condition will always return 'false' since the types 'Role' and '"admin"' have no overlap.` ,
140
140
' 32 | const user = await login(email, password);' ,
141
141
' 33 |' ,
@@ -177,7 +177,7 @@ describe('TypeScript Watch API', () => {
177
177
) ;
178
178
expect ( errors ) . toEqual ( [
179
179
[
180
- 'ERROR in ./src/model/User.ts 1:22-30 ' ,
180
+ 'ERROR in ./src/model/User.ts: 1:22' ,
181
181
"TS2307: Cannot find module './Role' or its corresponding type declarations." ,
182
182
" > 1 | import { Role } from './Role';" ,
183
183
' | ^^^^^^^^' ,
@@ -197,7 +197,7 @@ describe('TypeScript Watch API', () => {
197
197
errors = await driver . waitForErrors ( ) ;
198
198
expect ( errors ) . toEqual ( [
199
199
[
200
- 'ERROR in ./src/index.ts 34:7-31 ' ,
200
+ 'ERROR in ./src/index.ts: 34:7' ,
201
201
"TS2367: This condition will always return 'false' since the types 'Role' and '\"provider\"' have no overlap." ,
202
202
' 32 | const user = await login(email, password);' ,
203
203
' 33 |' ,
@@ -241,7 +241,7 @@ describe('TypeScript Watch API', () => {
241
241
errors = await driver . waitForErrors ( ) ;
242
242
expect ( errors ) . toEqual ( [
243
243
[
244
- 'ERROR in ./src/model/User.ts 11:16-25 ' ,
244
+ 'ERROR in ./src/model/User.ts: 11:16' ,
245
245
"TS2339: Property 'firstName' does not exist on type 'User'." ,
246
246
' 9 |' ,
247
247
' 10 | function getUserName(user: User): string {' ,
@@ -252,7 +252,7 @@ describe('TypeScript Watch API', () => {
252
252
' 14 | export { User, getUserName };' ,
253
253
] . join ( '\n' ) ,
254
254
[
255
- 'ERROR in ./src/model/User.ts 11:32-40 ' ,
255
+ 'ERROR in ./src/model/User.ts: 11:32' ,
256
256
"TS2339: Property 'lastName' does not exist on type 'User'." ,
257
257
' 9 |' ,
258
258
' 10 | function getUserName(user: User): string {' ,
@@ -279,7 +279,7 @@ describe('TypeScript Watch API', () => {
279
279
errors = await driver . waitForErrors ( ) ;
280
280
expect ( errors ) . toContain (
281
281
[
282
- 'ERROR in ./src/index.ts 1:23-39 ' ,
282
+ 'ERROR in ./src/index.ts: 1:23' ,
283
283
semver . satisfies ( semver . minVersion ( dependencies . typescript ) , '>=4.0.0' )
284
284
? "TS2307: Cannot find module './authenticate' or its corresponding type declarations."
285
285
: "TS2307: Cannot find module './authenticate'." ,
@@ -325,7 +325,7 @@ describe('TypeScript Watch API', () => {
325
325
errors = await driver . waitForErrors ( ) ;
326
326
expect ( errors ) . toEqual ( [
327
327
[
328
- 'ERROR in ./src/index.ts 34:12-16 ' ,
328
+ 'ERROR in ./src/index.ts: 34:12' ,
329
329
"TS2339: Property 'role' does not exist on type 'void'." ,
330
330
' 32 | const user = await login(email, password);' ,
331
331
' 33 |' ,
@@ -336,7 +336,7 @@ describe('TypeScript Watch API', () => {
336
336
' 37 | console.log(`Logged in as ${getUserName(user)}`);' ,
337
337
] . join ( '\n' ) ,
338
338
[
339
- 'ERROR in ./src/index.ts 35:45-49 ' ,
339
+ 'ERROR in ./src/index.ts: 35:45' ,
340
340
"TS2345: Argument of type 'void' is not assignable to parameter of type 'User'." ,
341
341
' 33 |' ,
342
342
" 34 | if (user.role === 'admin') {" ,
@@ -347,7 +347,7 @@ describe('TypeScript Watch API', () => {
347
347
' 38 | }' ,
348
348
] . join ( '\n' ) ,
349
349
[
350
- 'ERROR in ./src/index.ts 37:45-49 ' ,
350
+ 'ERROR in ./src/index.ts: 37:45' ,
351
351
"TS2345: Argument of type 'void' is not assignable to parameter of type 'User'." ,
352
352
' 35 | console.log(`Logged in as ${getUserName(user)} [admin].`);' ,
353
353
' 36 | } else {' ,
@@ -457,7 +457,7 @@ describe('TypeScript Watch API', () => {
457
457
458
458
expect ( await driver . waitForErrors ( ) ) . toEqual ( [
459
459
[
460
- 'ERROR in ./src/model/User.ts 12:47-59 ' ,
460
+ 'ERROR in ./src/model/User.ts: 12:47' ,
461
461
"TS2339: Property 'organization' does not exist on type 'User'." ,
462
462
' 10 |' ,
463
463
' 11 | function getUserName(user: User): string {' ,
0 commit comments