Improve types of testing utilities and fix some types in unit test code (#26122)

* Improve type of DeepPartial and make mergeObjects handle Sets/Maps properly

* Fix linting

* Remove undefined fields from menu_cloud_trial.test

* Prevent importing the wrong version of DeepPartial
Этот коммит содержится в:
Harrison Healey
2024-02-13 11:48:13 -05:00
коммит произвёл GitHub
родитель bdce9f42d8
Коммит daab9d5ff5
43 изменённых файлов: 303 добавлений и 292 удалений

Просмотреть файл

@@ -4,7 +4,8 @@
import {mount} from 'enzyme';
import React from 'react';
import {Provider} from 'react-redux';
import type {DeepPartial} from 'redux';
import type {DeepPartial} from '@mattermost/types/utilities';
import {renderWithContext, screen} from 'tests/react_testing_utils';
import mockStore from 'tests/test_store';