From 78e3a4c97cd18a242c345f06bde3e2b4d9848deb Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 26 Nov 2018 17:57:01 -0800 Subject: [PATCH] test(ivy): root-case //packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test:test (#27278) PR Close #27278 --- .../ivy_build/app/test/BUILD.bazel | 1 - .../ivy_build/app/test/module_spec.ts | 31 ++++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/BUILD.bazel b/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/BUILD.bazel index 5d8c2ad1b9..378a3cd437 100644 --- a/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/BUILD.bazel +++ b/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/BUILD.bazel @@ -11,7 +11,6 @@ ts_library( ], ), tags = [ - "fixme-ivy-aot", "ivy-only", ], deps = [ diff --git a/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/module_spec.ts b/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/module_spec.ts index ff37b84043..df3edc685e 100644 --- a/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/module_spec.ts +++ b/packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test/module_spec.ts @@ -41,23 +41,24 @@ describe('Ivy NgModule', () => { it('works', () => { createInjector(JitAppModule); }); - it('throws an error on circular module dependencies', () => { - @NgModule({ - imports: [forwardRef(() => BModule)], - }) - class AModule { - } + fixmeIvy('FW-645: jit doesn\'t support forwardRefs') && + it('throws an error on circular module dependencies', () => { + @NgModule({ + imports: [forwardRef(() => BModule)], + }) + class AModule { + } - @NgModule({ - imports: [AModule], - }) - class BModule { - } + @NgModule({ + imports: [AModule], + }) + class BModule { + } - expect(() => createInjector(AModule)) - .toThrowError( - 'Circular dependency in DI detected for type AModule. Dependency path: AModule > BModule > AModule.'); - }); + expect(() => createInjector(AModule)) + .toThrowError( + 'Circular dependency in DI detected for type AModule. Dependency path: AModule > BModule > AModule.'); + }); it('merges imports and exports', () => { const TOKEN = new InjectionToken('TOKEN');