@@ -142,7 +142,9 @@ describe('Watch mode flows', () => {
142142 globalConfig,
143143 onComplete : expect . any ( Function ) ,
144144 outputStream : pipe ,
145- testWatcher : new TestWatcher ( { isWatchMode : true } ) ,
145+ testWatcher : JSON . parse (
146+ JSON . stringify ( new TestWatcher ( { isWatchMode : true } ) ) ,
147+ ) ,
146148 } ) ;
147149 } ) ;
148150
@@ -156,7 +158,9 @@ describe('Watch mode flows', () => {
156158 globalConfig,
157159 onComplete : expect . any ( Function ) ,
158160 outputStream : pipe ,
159- testWatcher : new TestWatcher ( { isWatchMode : true } ) ,
161+ testWatcher : JSON . parse (
162+ JSON . stringify ( new TestWatcher ( { isWatchMode : true } ) ) ,
163+ ) ,
160164 } ) ;
161165 } ) ;
162166
@@ -167,7 +171,9 @@ describe('Watch mode flows', () => {
167171 globalConfig,
168172 onComplete : expect . any ( Function ) ,
169173 outputStream : pipe ,
170- testWatcher : new TestWatcher ( { isWatchMode : true } ) ,
174+ testWatcher : JSON . parse (
175+ JSON . stringify ( new TestWatcher ( { isWatchMode : true } ) ) ,
176+ ) ,
171177 } ) ;
172178 expect ( pipe . write . mock . calls . reverse ( ) [ 0 ] ) . toMatchSnapshot ( ) ;
173179 } ) ;
@@ -183,7 +189,9 @@ describe('Watch mode flows', () => {
183189 globalConfig,
184190 onComplete : expect . any ( Function ) ,
185191 outputStream : pipe ,
186- testWatcher : new TestWatcher ( { isWatchMode : true } ) ,
192+ testWatcher : JSON . parse (
193+ JSON . stringify ( new TestWatcher ( { isWatchMode : true } ) ) ,
194+ ) ,
187195 } ) ;
188196 expect ( pipe . write . mock . calls . reverse ( ) [ 0 ] ) . toMatchSnapshot ( ) ;
189197 } ) ;
0 commit comments