Skip to content

Commit 7f98071

Browse files
committed
avoid disableLazyShapeComputation in project reference compile on save test
1 parent 3de47cb commit 7f98071

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function fn2() { }
1111
const dependencyConfig: File = {
1212
path: `${dependecyLocation}/tsconfig.json`,
1313
content: JSON.stringify({
14-
compilerOptions: { composite: true, disableLazyShapeComputation: true, declarationDir: "../decls" },
14+
compilerOptions: { composite: true, declarationDir: "../decls" },
1515
compileOnSave: true
1616
})
1717
};
@@ -29,9 +29,6 @@ fn2();
2929
path: `${usageLocation}/tsconfig.json`,
3030
content: JSON.stringify({
3131
compileOnSave: true,
32-
compilerOptions: {
33-
disableLazyShapeComputation: true
34-
},
3532
references: [{ path: "../dependency" }]
3633
})
3734
};
@@ -329,10 +326,10 @@ ${appendDts}`
329326
requestArgs: () => ({ file: dependencyTs.path, projectFileName: usageConfig.path }),
330327
skipWithoutProject: !!isDependencyOpen,
331328
initial: () => initialDependencyTs(),
332-
localChangeToDependency: () => initialDependencyTs(/*noUsageFiles*/ true),
333-
localChangeToUsage: () => initialDependencyTs(/*noUsageFiles*/ true),
329+
localChangeToDependency: () => initialDependencyTs(),
330+
localChangeToUsage: () => initialDependencyTs(),
334331
changeToDependency: () => initialDependencyTs(),
335-
changeToUsage: () => initialDependencyTs(/*noUsageFiles*/ true)
332+
changeToUsage: () => initialDependencyTs()
336333
}
337334
];
338335

@@ -368,15 +365,15 @@ ${appendDts}`
368365
expectedAffectedFiles(dependencyConfig, [dependencyTs])
369366
] :
370367
[
371-
expectedAffectedFiles(usageConfig, []),
368+
expectedAffectedFiles(usageConfig, [usageTs]),
372369
expectedAffectedFiles(dependencyConfig, [dependencyTs])
373370
],
374371
expectedEmit: expectedDependencyEmit(localChange),
375372
expectedEmitOutput: expectedDependencyEmitOutput(localChange)
376373
}),
377-
localChangeToUsage: withProject => initial(withProject, /*noUsageFiles*/ true),
374+
localChangeToUsage: withProject => initial(withProject),
378375
changeToDependency: withProject => initial(withProject, /*noUsageFiles*/ undefined, changeJs, changeDts),
379-
changeToUsage: withProject => initial(withProject, /*noUsageFiles*/ true)
376+
changeToUsage: withProject => initial(withProject)
380377
};
381378

382379
function initial(withProject: boolean, noUsageFiles?: true, appendJs?: string, appendDts?: string): SingleScenarioResult {

0 commit comments

Comments
 (0)