chore: Working toward killing enzyme and cleaning up test noise. (#32207)

This commit is contained in:
Evan Rusackas
2025-02-11 12:14:36 -07:00
committed by GitHub
parent d3b854a833
commit 319a860f23
238 changed files with 4167 additions and 6334 deletions

View File

@@ -17,10 +17,7 @@
* under the License.
*/
import configureStore from 'redux-mock-store';
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom';
import { Provider } from 'react-redux';
import { ThemeProvider, supersetTheme } from '@superset-ui/core';
import { render, screen } from 'spec/helpers/testing-library';
import { INVALID_DATE } from '@superset-ui/chart-controls';
import { extendedDayjs } from 'src/utils/dates';
import TimeOffsetControls, {
@@ -53,13 +50,7 @@ describe('TimeOffsetControls', () => {
const props = { ...defaultProps };
render(
<Provider store={store}>
<ThemeProvider theme={supersetTheme}>
<TimeOffsetControls {...props} />
</ThemeProvider>
</Provider>,
);
render(<TimeOffsetControls {...props} />, { store });
return { store, props };
};