mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: Working toward killing enzyme and cleaning up test noise. (#32207)
This commit is contained in:
@@ -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 };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user