File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
superset-frontend/src/views/CRUD/data/dataset Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ fetchMock.get(databaseEndpoint, {
8484 result : [ ] ,
8585} ) ;
8686
87- async function mountAndWait ( props ) {
87+ async function mountAndWait ( props : { } ) {
8888 const mounted = mount (
8989 < Provider store = { store } >
9090 < DatasetList { ...props } user = { mockUser } />
@@ -97,7 +97,7 @@ async function mountAndWait(props) {
9797
9898describe ( 'DatasetList' , ( ) => {
9999 const mockedProps = { } ;
100- let wrapper ;
100+ let wrapper : any ;
101101
102102 beforeAll ( async ( ) => {
103103 wrapper = await mountAndWait ( mockedProps ) ;
@@ -255,7 +255,10 @@ describe('RTL', () => {
255255 return mounted ;
256256 }
257257
258- let isFeatureEnabledMock ;
258+ let isFeatureEnabledMock : jest . SpyInstance <
259+ boolean ,
260+ [ feature : featureFlags . FeatureFlag ]
261+ > ;
259262 beforeEach ( async ( ) => {
260263 isFeatureEnabledMock = jest
261264 . spyOn ( featureFlags , 'isFeatureEnabled' )
You can’t perform that action at this time.
0 commit comments