Skip to content

Commit 451d2cb

Browse files
committed
test: add workaround while waiting for angular/angular
1 parent fd6bd6f commit 451d2cb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/legacy-cli/e2e/tests/build/lazy-load-syntax.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ export default async function () {
124124
buildTarget['options']['experimentalImportFactories'] = true;
125125
});
126126
// Both Ivy and View Engine should support it.
127-
await replaceLoadChildren(`() => import('./lazy/lazy.module').then(m => m.LazyModule)`);
127+
// DO_NOT_SUBMIT
128+
// `as any` is a workaround while waiting for https://github.com/angular/angular/pull/29392
129+
// when that's merged remove the next line, and uncomment the one after it
130+
await replaceLoadChildren(`() => import('./lazy/lazy.module').then(m => m.LazyModule) as any`);
131+
// await replaceLoadChildren(`() => import('./lazy/lazy.module').then(m => m.LazyModule)`);
128132
await ng('e2e');
129133
await ng('e2e', '--prod');
130134
}

0 commit comments

Comments
 (0)