A linting error indicates:
deprecation group is deprecated: This API is not typesafe and can result in issues with Closure Compiler renaming. Use the
FormBuilder#group
overload withAbstractControlOptions
instead.
I have read other question were the answer indacates the changes in formBuilder.group() however I only recieve the error in my spec.ts files for testing using Karma Jasmine.
I implement the test using SpyObjects
and the implementation is as follows:
formBuilder = jasmine.createSpyObj<FormBuilder>('formBuilder', ['group']);
formBuilder.group.and.returnValue({ valueChanges: EMPTY, value: {} } as any);
The warning is shown for each line with formBuilder.group