Skip to content

Commit bc70ffb

Browse files
committed
fix: added TODO identifier to ignore errors
1 parent 93f0376 commit bc70ffb

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

test/components/connect.spec.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
/*eslint-disable react/prop-types*/
22

3-
import React, {
4-
Component,
5-
MouseEvent,
6-
useEffect,
7-
ComponentClass,
8-
ComponentType,
9-
} from 'react'
3+
import React, { Component, MouseEvent, ComponentType } from 'react'
104
import createClass from 'create-react-class'
115
import PropTypes from 'prop-types'
126
import ReactDOM from 'react-dom'
@@ -2350,6 +2344,9 @@ describe('React', () => {
23502344
rtl.render(
23512345
<ProviderMock context={context} store={store1}>
23522346
<ProviderMock store={store2}>
2347+
{/*TODO: Since the connect type does not support this advanced usage,
2348+
we will ignore it for the time being and resolve it after merging connect and connectAdvanced
2349+
https://github.com/reduxjs/react-redux/pull/1781 */}
23532350
{/*// @ts-ignore */}
23542351
<Decorated context={context} />
23552352
</ProviderMock>
@@ -2382,6 +2379,9 @@ describe('React', () => {
23822379

23832380
rtl.render(
23842381
<ProviderMock store={store}>
2382+
{/*TODO: Since the connect type does not support this advanced usage,
2383+
we will ignore it for the time being and resolve it after merging connect and connectAdvanced
2384+
https://github.com/reduxjs/react-redux/pull/1781 */}
23852385
{/*// @ts-ignore */}
23862386
<Decorated context={nonContext} />
23872387
</ProviderMock>
@@ -2526,6 +2526,9 @@ describe('React', () => {
25262526
const tester = rtl.render(
25272527
<ProviderMock store={store1}>
25282528
<ConnectedComp1>
2529+
{/*TODO: Since the connect type does not support this advanced usage,
2530+
we will ignore it for the time being and resolve it after merging connect and connectAdvanced
2531+
https://github.com/reduxjs/react-redux/pull/1781 */}
25292532
{/*// @ts-ignore */}
25302533
<ConnectedComp2 store={store2} />
25312534
</ConnectedComp1>

0 commit comments

Comments
 (0)