]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: adapt jest unit tests to angular 14
authorNizamudeen A <nia@redhat.com>
Fri, 9 Jun 2023 14:06:41 +0000 (19:36 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 3 Oct 2023 05:22:32 +0000 (10:52 +0530)
commit621bfd9c6c8c7b95d99f2c43a0029d6b78e66479
tree6e91470489dd045ca8ce28db401b30f1b11166a8
parent47f190332a02b731179a308ae77a6182dc2f6822
mgr/dashboard: adapt jest unit tests to angular 14

Important change would be the introduction of `TypedFormControl` which
is now more stricter in typing the FormControl and FormGroups as well.
Right now the dashboard has many number of untypedforms which by default
is migrated to an `UntypedFormControl` class when I ran the angular
upgrade script

Fixes: https://tracker.ceph.com/issues/61641
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 08a32ec4ef79c32b3182d327a79fdfbb3376164d)
src/pybind/mgr/dashboard/frontend/package-lock.json
src/pybind/mgr/dashboard/frontend/package.json
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-form/iscsi-target-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/host.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/testing/unit-test-helper.ts