@@ -8,7 +8,6 @@ import { createStore } from 'redux'
88import type { ReactReduxContextValue } from '../../src'
99import { Provider , ReactReduxContext , connect } from '../../src/index'
1010
11- import '@testing-library/jest-dom/extend-expect'
1211import * as ReactDOM from 'react-dom'
1312
1413const createExampleTextReducer =
@@ -51,7 +50,7 @@ describe('React', () => {
5150 it ( 'should not enforce a single child' , ( ) => {
5251 const store = createStore ( ( ) => ( { } ) )
5352
54- const spy = jest . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } )
53+ const spy = vi . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } )
5554
5655 expect ( ( ) =>
5756 rtl . render (
@@ -79,7 +78,7 @@ describe('React', () => {
7978 it ( 'should add the store to context' , ( ) => {
8079 const store = createStore ( createExampleTextReducer ( ) )
8180
82- const spy = jest . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } )
81+ const spy = vi . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } )
8382 const tester = rtl . render (
8483 < Provider store = { store } >
8584 < Child />
@@ -170,7 +169,7 @@ describe('React', () => {
170169 action . type === 'INC' ? state + 1 : state
171170
172171 const innerStore = createStore ( reducer )
173- const innerMapStateToProps = jest . fn < TStateProps , [ number ] > ( ( state ) => ( {
172+ const innerMapStateToProps = vi . fn < TStateProps , [ number ] > ( ( state ) => ( {
174173 count : state ,
175174 } ) )
176175 class Inner extends Component < TStateProps > {
@@ -315,7 +314,7 @@ describe('React', () => {
315314 if ( ! React . StrictMode ) {
316315 return
317316 }
318- const spy = jest . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } )
317+ const spy = vi . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } )
319318 const store = createStore ( ( ) => ( { } ) )
320319
321320 rtl . render (
@@ -334,7 +333,7 @@ describe('React', () => {
334333 const subscribe = store . subscribe
335334
336335 // Keep track of unsubscribe by wrapping subscribe()
337- const spy = jest . fn ( ( ) => ( { } ) )
336+ const spy = vi . fn ( ( ) => ( { } ) )
338337 store . subscribe = ( listener ) => {
339338 const unsubscribe = subscribe ( listener )
340339 return ( ) => {
0 commit comments