test(ivy): root-case //packages/compiler-cli/integrationtest/bazel/injector_def/ivy_build/app/test:test (#27278)
PR Close #27278
This commit is contained in:
parent
5d82c73da6
commit
78e3a4c97c
|
@ -11,7 +11,6 @@ ts_library(
|
|||
],
|
||||
),
|
||||
tags = [
|
||||
"fixme-ivy-aot",
|
||||
"ivy-only",
|
||||
],
|
||||
deps = [
|
||||
|
|
|
@ -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<string>('TOKEN');
|
||||
|
|
Loading…
Reference in New Issue