Skip to content

Commit dc1df62

Browse files
committed
test(migrations): fix ng LS test additional file handling
1 parent 85d99ff commit dc1df62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/igniteui-angular/migrations/common/setup.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class IgxUnitTestTree extends UnitTestTree {
5656
if (!project.containsScriptInfo(scriptInfo)) {
5757
// add the file to the configured project to prevent tss from creating an inferred project for floating files
5858
scriptInfo.attachToProject(project);
59+
// add root in advance for ng LS discovery if two files test.component.ts/html and html is analyzed first
60+
project.addMissingFileRoot(scriptInfo.fileName);
5961
} else {
6062
// if using same file, force-reload from host for new content
6163
scriptInfo.reloadFromFile(tss.server.asNormalizedPath(entryPath));

0 commit comments

Comments
 (0)