From 45cef11df87ee7b8ddbba46dce4ab737c9dcfe69 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Fri, 5 May 2023 12:39:14 +0200 Subject: [PATCH] update test --- test/e2e/app-dir/app/index.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/e2e/app-dir/app/index.test.ts b/test/e2e/app-dir/app/index.test.ts index 246351faea95b..e6fed2195709a 100644 --- a/test/e2e/app-dir/app/index.test.ts +++ b/test/e2e/app-dir/app/index.test.ts @@ -205,6 +205,12 @@ createNextDescribe( }) } + it('should serve from pages with latest react', async () => { + const $ = await next.render$('/') + expect($('#hello').text()).toBe('hello from pages/index') + expect($('#react-version').text()).toBe('18.2.0') + }) + if (isNextStart) { it('should generate build traces correctly', async () => { const trace = JSON.parse( @@ -264,12 +270,6 @@ createNextDescribe( expect($('title').first().text()).toBe('hello world') }) - it('should serve from pages with latest react', async () => { - const $ = await next.render$('/') - expect($('#hello').text()).toBe('hello from pages/index') - expect($('#react-version').text()).toBe('18.2.0') - }) - it('should serve dynamic route from pages', async () => { const html = await next.render('/blog/first') expect(html).toContain('hello from pages/blog/[slug]')