File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
test/e2e/app-dir/rsc-basic Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,19 @@ describe('app dir - rsc basics', () => {
94
94
it ( 'should correctly render page returning undefined' , async ( ) => {
95
95
const homeHTML = await next . render ( '/return-undefined/page' )
96
96
const $ = cheerio . load ( homeHTML )
97
- expect ( stripHTMLComments ( $ ( '#return-undefined-layout' ) . html ( ) ) ) . toBeEmpty ( )
97
+ try {
98
+ expect (
99
+ stripHTMLComments ( $ ( '#return-undefined-layout' ) . html ( ) )
100
+ ) . toBeEmpty ( )
101
+ } catch ( err ) {
102
+ const sep = '=' . repeat ( 40 ) + ' PAGE HTML ' + '=' . repeat ( 40 )
103
+ console . log ( )
104
+ console . log ( sep )
105
+ console . log ( $ ( 'html' ) . html ( ) )
106
+ console . log ( sep )
107
+ console . log ( )
108
+ throw err
109
+ }
98
110
} )
99
111
100
112
it ( 'should correctly render component returning undefined' , async ( ) => {
You can’t perform that action at this time.
0 commit comments