You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this possible? I couldn't find any documentation. Using any parameter for Module in new Shallow(ColorComponent, SharedModule); results in an error:
Error: Unexpected "ColorComponent" found in the "declarations" array of the "ShallowTestModule" NgModule, "ColorComponent" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?
at verifySemanticsOfNgModuleDef (node_modules/@angular/core/fesm2020/core.mjs:24319:15)
at forEach (node_modules/@angular/core/fesm2020/core.mjs:24292:9)
at Array.forEach (<anonymous>)
at verifySemanticsOfNgModuleDef (node_modules/@angular/core/fesm2020/core.mjs:24290:60)
at Function.get (node_modules/@angular/core/fesm2020/core.mjs:24243:21)
at TestBedCompiler.applyProviderOverridesInScope (node_modules/@angular/core/fesm2020/testing.mjs:25520:33)
at TestBedCompiler.compileTestModule (node_modules/@angular/core/fesm2020/testing.mjs:25810:14)
at TestBedCompiler.finalize (node_modules/@angular/core/fesm2020/testing.mjs:25362:14)
I'm using shallow-render 14.2.0 and Angular 14.2.1
The text was updated successfully, but these errors were encountered:
Is this possible? I couldn't find any documentation. Using any parameter for Module in
new Shallow(ColorComponent, SharedModule);
results in an error:I'm using shallow-render 14.2.0 and Angular 14.2.1
The text was updated successfully, but these errors were encountered: