@@ -205,7 +205,10 @@ describe('warns on multiple apis using the same `reducerPath`', () => {
205
205
test ( 'common: two apis, same order' , async ( ) => {
206
206
const store = configureStore ( {
207
207
reducer : {
208
+ // TS 5.3 now errors on identical object keys. We want to force that behavior.
209
+ // @ts -ignore
208
210
[ api1 . reducerPath ] : api1 . reducer ,
211
+ // @ts -ignore
209
212
[ api1_2 . reducerPath ] : api1_2 . reducer ,
210
213
} ,
211
214
middleware : ( gDM ) => gDM ( ) . concat ( api1 . middleware , api1_2 . middleware ) ,
@@ -222,7 +225,9 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
222
225
test ( 'common: two apis, opposing order' , async ( ) => {
223
226
const store = configureStore ( {
224
227
reducer : {
228
+ // @ts -ignore
225
229
[ api1 . reducerPath ] : api1 . reducer ,
230
+ // @ts -ignore
226
231
[ api1_2 . reducerPath ] : api1_2 . reducer ,
227
232
} ,
228
233
middleware : ( gDM ) => gDM ( ) . concat ( api1_2 . middleware , api1 . middleware ) ,
@@ -242,7 +247,9 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
242
247
test ( 'common: two apis, only first middleware' , async ( ) => {
243
248
const store = configureStore ( {
244
249
reducer : {
250
+ // @ts -ignore
245
251
[ api1 . reducerPath ] : api1 . reducer ,
252
+ // @ts -ignore
246
253
[ api1_2 . reducerPath ] : api1_2 . reducer ,
247
254
} ,
248
255
middleware : ( gDM ) => gDM ( ) . concat ( api1 . middleware ) ,
@@ -266,7 +273,9 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
266
273
test . skip ( 'common: two apis, only second middleware' , async ( ) => {
267
274
const store = configureStore ( {
268
275
reducer : {
276
+ // @ts -ignore
269
277
[ api1 . reducerPath ] : api1 . reducer ,
278
+ // @ts -ignore
270
279
[ api1_2 . reducerPath ] : api1_2 . reducer ,
271
280
} ,
272
281
middleware : ( gDM ) => gDM ( ) . concat ( api1_2 . middleware ) ,
0 commit comments