@@ -634,35 +634,31 @@ test.runIf(isBuild)('manifest', async () => {
634634 }
635635} )
636636
637- // TODO: skip on Windows due to https://github.com/rolldown/rolldown/issues/4385
638- describe . runIf ( isBuild && ! isWindows ) (
639- 'css and assets in css in build watch' ,
640- ( ) => {
641- test ( 'css will not be lost and css does not contain undefined' , async ( ) => {
642- editFile ( 'index.html' , ( code ) => code . replace ( 'Assets' , 'assets' ) )
643- await notifyRebuildComplete ( watcher )
644- const cssFile = findAssetFile ( / i n d e x - [ - \w ] + \. c s s $ / , 'foo' )
645- expect ( cssFile ) . not . toBe ( '' )
646- expect ( cssFile ) . not . toMatch ( / u n d e f i n e d / )
647- } )
637+ describe . runIf ( isBuild ) ( 'css and assets in css in build watch' , ( ) => {
638+ test ( 'css will not be lost and css does not contain undefined' , async ( ) => {
639+ editFile ( 'index.html' , ( code ) => code . replace ( 'Assets' , 'assets' ) )
640+ await notifyRebuildComplete ( watcher )
641+ const cssFile = findAssetFile ( / i n d e x - [ - \w ] + \. c s s $ / , 'foo' )
642+ expect ( cssFile ) . not . toBe ( '' )
643+ expect ( cssFile ) . not . toMatch ( / u n d e f i n e d / )
644+ } )
648645
649- test ( 'import module.css' , async ( ) => {
650- expect ( await getColor ( '#foo' ) ) . toBe ( 'red' )
651- editFile ( 'css/foo.module.css' , ( code ) => code . replace ( 'red' , 'blue' ) )
652- await notifyRebuildComplete ( watcher )
653- await page . reload ( )
654- expect ( await getColor ( '#foo' ) ) . toBe ( 'blue' )
655- } )
646+ test ( 'import module.css' , async ( ) => {
647+ expect ( await getColor ( '#foo' ) ) . toBe ( 'red' )
648+ editFile ( 'css/foo.module.css' , ( code ) => code . replace ( 'red' , 'blue' ) )
649+ await notifyRebuildComplete ( watcher )
650+ await page . reload ( )
651+ expect ( await getColor ( '#foo' ) ) . toBe ( 'blue' )
652+ } )
656653
657- test ( 'import with raw query' , async ( ) => {
658- expect ( await page . textContent ( '.raw-query' ) ) . toBe ( 'foo' )
659- editFile ( 'static/foo.txt' , ( code ) => code . replace ( 'foo' , 'zoo' ) )
660- await notifyRebuildComplete ( watcher )
661- await page . reload ( )
662- expect ( await page . textContent ( '.raw-query' ) ) . toBe ( 'zoo' )
663- } )
664- } ,
665- )
654+ test ( 'import with raw query' , async ( ) => {
655+ expect ( await page . textContent ( '.raw-query' ) ) . toBe ( 'foo' )
656+ editFile ( 'static/foo.txt' , ( code ) => code . replace ( 'foo' , 'zoo' ) )
657+ await notifyRebuildComplete ( watcher )
658+ await page . reload ( )
659+ expect ( await page . textContent ( '.raw-query' ) ) . toBe ( 'zoo' )
660+ } )
661+ } )
666662
667663test ( 'inline style test' , async ( ) => {
668664 expect ( await getBg ( '.inline-style' ) ) . toMatch ( assetMatch )
0 commit comments