Skip to content

Commit d40ab04

Browse files
committed
Update test + baseline
1 parent ea8d98b commit d40ab04

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

src/testRunner/unittests/tscWatch/programUpdates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ export function f(p: C) { return p; }`
14711471
};
14721472
const config: File = {
14731473
path: `/tsconfig.json`,
1474-
content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: false })
1474+
content: JSON.stringify({ compilerOptions: { forceConsistentCasingInFileNames: false } })
14751475
};
14761476
return createWatchedSystem([aFile, bFile, config, libFile], { useCaseSensitiveFileNames: false });
14771477
},

tests/baselines/reference/tscWatch/programUpdates/updates-errors-when-forceConsistentCasingInFileNames-changes.js

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class C {}
66
import {C} from './a'; import * as A from './A';
77

88
//// [/tsconfig.json]
9-
{"compilerOptions":{}}
9+
{"compilerOptions":{"forceConsistentCasingInFileNames":false}}
1010

1111
//// [/a/lib/lib.d.ts]
1212
/// <reference no-default-lib="true"/>
@@ -27,26 +27,12 @@ Output::
2727
>> Screen clear
2828
[12:00:15 AM] Starting compilation in watch mode...
2929

30-
b.ts:1:43 - error TS1149: File name '/A.ts' differs from already included file name '/a.ts' only in casing.
31-
The file is in the program because:
32-
Matched by default include pattern '**/*'
33-
Imported via './a' from file '/b.ts'
34-
Imported via './A' from file '/b.ts'
35-
36-
1 import {C} from './a'; import * as A from './A';
37-
   ~~~~~
38-
39-
b.ts:1:17
40-
1 import {C} from './a'; import * as A from './A';
41-
   ~~~~~
42-
File is included via import here.
43-
44-
[12:00:20 AM] Found 1 error. Watching for file changes.
30+
[12:00:20 AM] Found 0 errors. Watching for file changes.
4531

4632

4733

4834
Program root files: ["/a.ts","/b.ts","/a/lib/lib.d.ts"]
49-
Program options: {"watch":true,"configFilePath":"/tsconfig.json"}
35+
Program options: {"forceConsistentCasingInFileNames":false,"watch":true,"configFilePath":"/tsconfig.json"}
5036
Program structureReused: Not
5137
Program files::
5238
/a.ts

0 commit comments

Comments
 (0)