@@ -142,7 +142,9 @@ describe('Watch mode flows', () => {
142
142
globalConfig,
143
143
onComplete : expect . any ( Function ) ,
144
144
outputStream : pipe ,
145
- testWatcher : new TestWatcher ( { isWatchMode : true } ) ,
145
+ testWatcher : JSON . parse (
146
+ JSON . stringify ( new TestWatcher ( { isWatchMode : true } ) ) ,
147
+ ) ,
146
148
} ) ;
147
149
} ) ;
148
150
@@ -156,7 +158,9 @@ describe('Watch mode flows', () => {
156
158
globalConfig,
157
159
onComplete : expect . any ( Function ) ,
158
160
outputStream : pipe ,
159
- testWatcher : new TestWatcher ( { isWatchMode : true } ) ,
161
+ testWatcher : JSON . parse (
162
+ JSON . stringify ( new TestWatcher ( { isWatchMode : true } ) ) ,
163
+ ) ,
160
164
} ) ;
161
165
} ) ;
162
166
@@ -167,7 +171,9 @@ describe('Watch mode flows', () => {
167
171
globalConfig,
168
172
onComplete : expect . any ( Function ) ,
169
173
outputStream : pipe ,
170
- testWatcher : new TestWatcher ( { isWatchMode : true } ) ,
174
+ testWatcher : JSON . parse (
175
+ JSON . stringify ( new TestWatcher ( { isWatchMode : true } ) ) ,
176
+ ) ,
171
177
} ) ;
172
178
expect ( pipe . write . mock . calls . reverse ( ) [ 0 ] ) . toMatchSnapshot ( ) ;
173
179
} ) ;
@@ -183,7 +189,9 @@ describe('Watch mode flows', () => {
183
189
globalConfig,
184
190
onComplete : expect . any ( Function ) ,
185
191
outputStream : pipe ,
186
- testWatcher : new TestWatcher ( { isWatchMode : true } ) ,
192
+ testWatcher : JSON . parse (
193
+ JSON . stringify ( new TestWatcher ( { isWatchMode : true } ) ) ,
194
+ ) ,
187
195
} ) ;
188
196
expect ( pipe . write . mock . calls . reverse ( ) [ 0 ] ) . toMatchSnapshot ( ) ;
189
197
} ) ;
0 commit comments