File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ test-results
1111.debug
1212.vite-inspect
1313.claude
14+ .tmp
Original file line number Diff line number Diff line change 11import { expect , test } from '@playwright/test'
22import { type Fixture , useFixture } from './fixture'
33import { expectNoReload , testNoJs , waitForHydration } from './helper'
4+ import fs from 'node:fs'
45
56test . describe ( 'dev-default' , ( ) => {
67 const f = useFixture ( { root : 'examples/starter' , mode : 'dev' } )
@@ -22,6 +23,24 @@ test.describe('build-cloudflare', () => {
2223 defineTest ( f )
2324} )
2425
26+ test . describe ( ( ) => {
27+ const root = '.tmp/starter-react-compiler'
28+ test . beforeAll ( async ( ) => {
29+ fs . rmSync ( root , { recursive : true , force : true } )
30+ fs . cpSync ( 'examples/starter' , root , { recursive : true } )
31+ } )
32+
33+ test . describe ( 'dev-react-compiler' , ( ) => {
34+ const f = useFixture ( { root, mode : 'dev' } )
35+ defineTest ( f )
36+ } )
37+
38+ test . describe ( 'build-react-compiler' , ( ) => {
39+ const f = useFixture ( { root, mode : 'build' } )
40+ defineTest ( f )
41+ } )
42+ } )
43+
2544function defineTest ( f : Fixture ) {
2645 test ( 'basic' , async ( { page } ) => {
2746 await page . goto ( f . url ( ) )
You can’t perform that action at this time.
0 commit comments