Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test(schematics): key the compile host on the path TypeScript asks for
The four "output compiles" specs failed on Windows only. `path.resolve` returns
backslashes there, TypeScript rewrites a root name's separators before asking the
compiler host for that file, and the host's exact-match comparison then missed its
own in-memory file. Every Windows job reported TS6053 for a file it had been handed.

Reproduced on macOS by keying the host on a backslash path, since TypeScript's
slash rewriting is not limited to Windows.
  • Loading branch information
armando-navarro committed Sep 2, 2026
commit 452c50168bfeb7dd8231e9ce8d30f2be09a5b65f
2 changes: 1 addition & 1 deletion src/schematics/update/v21/vertexai-to-ai.jasmine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('rewriteVertexAIToAI', () => {
* node_modules the way it would in a user's workspace.
*/
const compile = (source: string): string[] => {
const filePath = resolve('migrated-output.ts');
const filePath = resolve('migrated-output.ts').replace(/\\/g, '/');
const host = typescript.createCompilerHost(compilerOptions, true);
const readFromDisk = host.getSourceFile.bind(host);
const existsOnDisk = host.fileExists.bind(host);
Expand Down
Loading