File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
e2e/cases/plugin-react/jsx-runtime-classic Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 1- import { expect , test } from '@e2e/helper' ;
1+ import { expect , rspackTest } from '@e2e/helper' ;
22
3- test ( 'should render element with classic JSX runtime in build' , async ( {
4- page ,
5- buildPreview ,
6- } ) => {
7- await buildPreview ( ) ;
8- const testEl = page . locator ( '#test ') ;
9- await expect ( testEl ) . toHaveText ( 'Hello Rsbuild!' ) ;
10- } ) ;
3+ rspackTest (
4+ 'should render element with classic JSX runtime in build' ,
5+ async ( { page , buildPreview } ) => {
6+ await buildPreview ( ) ;
7+ const testEl = page . locator ( '#test' ) ;
8+ await expect ( testEl ) . toHaveText ( 'Hello Rsbuild! ') ;
9+ } ,
10+ ) ;
1111
12- test ( 'should render element with classic JSX runtime in dev' , async ( {
13- page ,
14- dev ,
15- } ) => {
16- await dev ( ) ;
17- const testEl = page . locator ( '#test ') ;
18- await expect ( testEl ) . toHaveText ( 'Hello Rsbuild!' ) ;
19- } ) ;
12+ rspackTest (
13+ 'should render element with classic JSX runtime in dev' ,
14+ async ( { page , dev } ) => {
15+ await dev ( ) ;
16+ const testEl = page . locator ( '#test' ) ;
17+ await expect ( testEl ) . toHaveText ( 'Hello Rsbuild! ') ;
18+ } ,
19+ ) ;
You can’t perform that action at this time.
0 commit comments