Skip to content

Commit 580bb06

Browse files
authored
Make files safe for Windows (#44651)
* make typeofthis tests case-insensitive-safe * shorten test case names * correct way to change test directories * update baselines
1 parent 5afe42e commit 580bb06

File tree

56 files changed

+514
-518
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+514
-518
lines changed

src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts

+5-9
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ console.log(b.c.d);`
126126
],
127127
});
128128
}
129-
130129
describe("updates errors when deep import file changes", () => {
131130
const bFile: File = {
132131
path: `${projectRoot}/b.ts`,
@@ -144,12 +143,11 @@ export class B
144143
}`
145144
};
146145
verifyDeepImportChange(
147-
"updates errors when deep import file changes",
146+
"errors for .ts change",
148147
bFile,
149148
cFile
150149
);
151150
});
152-
153151
describe("updates errors when deep import through declaration file changes", () => {
154152
const bFile: File = {
155153
path: `${projectRoot}/b.d.ts`,
@@ -167,7 +165,7 @@ export class B
167165
}`
168166
};
169167
verifyDeepImportChange(
170-
"updates errors when deep import through declaration file changes",
168+
"errors for .d.ts change",
171169
bFile,
172170
cFile
173171
);
@@ -236,7 +234,6 @@ getPoint().c.x;`
236234
]
237235
});
238236
});
239-
240237
describe("updates errors when file transitively exported file changes", () => {
241238
const config: File = {
242239
path: `${projectRoot}/tsconfig.json`,
@@ -287,7 +284,7 @@ export class Data {
287284

288285
function verifyTransitiveExports(subScenario: string, files: readonly File[]) {
289286
verifyEmitAndErrorUpdates({
290-
subScenario: `updates errors when file transitively exported file changes/${subScenario}`,
287+
subScenario: `transitive exports/${subScenario}`,
291288
files: () => [lib1ToolsInterface, lib1ToolsPublic, app, lib2Public, lib1Public, ...files],
292289
configFile: () => config,
293290
changes: [
@@ -311,11 +308,10 @@ export class Data {
311308
}
312309
describe("when there are no circular import and exports", () => {
313310
verifyTransitiveExports(
314-
"when there are no circular import and exports",
311+
"no circular import/export",
315312
[lib2Data]
316313
);
317314
});
318-
319315
describe("when there are circular import and exports", () => {
320316
const lib2Data: File = {
321317
path: `${projectRoot}/lib2/data.ts`,
@@ -337,7 +333,7 @@ export class Data2 {
337333
}`
338334
};
339335
verifyTransitiveExports(
340-
"when there are circular import and exports",
336+
"yes circular import/exports",
341337
[lib2Data, lib2Data2]
342338
);
343339
});

0 commit comments

Comments
 (0)