File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ import { test } from '@playwright/test'
2+ import * as vite from 'vite'
3+ import { setupInlineFixture , useFixture } from './fixture'
4+ import { defineStarterTest } from './starter'
5+
6+ test . describe ( 'rolldownOptions' , ( ) => {
7+ test . skip ( ! ( 'rolldownVersion' in vite ) , 'rolldown only' )
8+
9+ const root = 'examples/e2e/temp/rolldown-options'
10+ test . beforeAll ( async ( ) => {
11+ await setupInlineFixture ( {
12+ src : 'examples/starter' ,
13+ dest : root ,
14+ files : {
15+ 'vite.config.ts' : {
16+ edit : ( s ) => s . replace ( / r o l l u p O p t i o n s / g, 'rolldownOptions' ) ,
17+ } ,
18+ } ,
19+ } )
20+ } )
21+
22+ test . describe ( 'dev' , ( ) => {
23+ const f = useFixture ( { root, mode : 'dev' } )
24+ defineStarterTest ( f )
25+ } )
26+
27+ test . describe ( 'build' , ( ) => {
28+ const f = useFixture ( { root, mode : 'build' } )
29+ defineStarterTest ( f )
30+ } )
31+ } )
You can’t perform that action at this time.
0 commit comments