We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79b34f0 commit 98e61efCopy full SHA for 98e61ef
test/e2e/app-dir/rsc-basic/rsc-basic.test.ts
@@ -94,7 +94,19 @@ describe('app dir - rsc basics', () => {
94
it('should correctly render page returning undefined', async () => {
95
const homeHTML = await next.render('/return-undefined/page')
96
const $ = cheerio.load(homeHTML)
97
- expect(stripHTMLComments($('#return-undefined-layout').html())).toBeEmpty()
+ 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
107
108
+ throw err
109
+ }
110
})
111
112
it('should correctly render component returning undefined', async () => {
0 commit comments