@@ -247,31 +247,31 @@ if (!isBuild) {
247
247
} )
248
248
}
249
249
250
- if ( ! process . env . VITE_TEST_FULL_BUNDLE_MODE ) {
251
- test ( 'invalidate in circular dep should not trigger infinite HMR' , async ( ) => {
252
- const el = await page . $ ( '.invalidation-circular-deps' )
253
- await untilUpdated ( ( ) => el . textContent ( ) , 'child' )
254
- editFile (
255
- 'invalidation-circular-deps/circular-invalidate/child.js' ,
256
- ( code ) => code . replace ( 'child' , 'child updated' ) ,
257
- )
258
- await page . waitForEvent ( 'load' )
259
- await untilUpdated (
260
- ( ) => page . textContent ( '.invalidation-circular-deps' ) ,
261
- 'child updated' ,
262
- )
263
- } )
250
+ test ( 'invalidate in circular dep should not trigger infinite HMR' , async ( ) => {
251
+ const el = await page . $ ( '.invalidation-circular-deps' )
252
+ await untilUpdated ( ( ) => el . textContent ( ) , 'child' )
253
+ editFile (
254
+ 'invalidation-circular-deps/circular-invalidate/child.js' ,
255
+ ( code ) => code . replace ( 'child' , 'child updated' ) ,
256
+ )
257
+ await page . waitForEvent ( 'load' )
258
+ await untilUpdated (
259
+ ( ) => page . textContent ( '.invalidation-circular-deps' ) ,
260
+ 'child updated' ,
261
+ )
262
+ } )
264
263
265
- test ( 'invalidate in circular dep should be hot updated if possible' , async ( ) => {
266
- const el = await page . $ ( '.invalidation-circular-deps-handled' )
267
- await untilUpdated ( ( ) => el . textContent ( ) , 'child' )
268
- editFile (
269
- 'invalidation-circular-deps/invalidate-handled-in-circle/child.js' ,
270
- ( code ) => code . replace ( 'child' , 'child updated' ) ,
271
- )
272
- await untilUpdated ( ( ) => el . textContent ( ) , 'child updated' )
273
- } )
264
+ test ( 'invalidate in circular dep should be hot updated if possible' , async ( ) => {
265
+ const el = await page . $ ( '.invalidation-circular-deps-handled' )
266
+ await untilUpdated ( ( ) => el . textContent ( ) , 'child' )
267
+ editFile (
268
+ 'invalidation-circular-deps/invalidate-handled-in-circle/child.js' ,
269
+ ( code ) => code . replace ( 'child' , 'child updated' ) ,
270
+ )
271
+ await untilUpdated ( ( ) => el . textContent ( ) , 'child updated' )
272
+ } )
274
273
274
+ if ( ! process . env . VITE_TEST_FULL_BUNDLE_MODE ) {
275
275
test ( 'plugin hmr handler + custom event' , async ( ) => {
276
276
const el = await page . $ ( '.custom' )
277
277
editFile ( 'customFile.js' , ( code ) => code . replace ( 'custom' , 'edited' ) )
0 commit comments