Unverified Commit 0797b1a6 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

skip rsc tests for react 17 e2e (#38524)

Fix flaky rsc test in react 17 e2e tests

x-ref: https://github.com/vercel/next.js/runs/7285946966?check_suite_focus=true
parent 645f7012
......@@ -50,12 +50,12 @@ describe('app dir - react server components', () => {
afterAll(() => next.destroy())
const { isNextDeploy, isNextDev } = global as any
if (isNextDeploy) {
it('should skip tests for next-deploy', () => {})
const isReact17 = process.env.NEXT_TEST_REACT_VERSION === '^17'
if (isNextDeploy || isReact17) {
it('should skip tests for next-deploy and react 17', () => {})
return
}
// TODO: support RSC index route
it('should render server components correctly', async () => {
const homeHTML = await renderViaHTTP(next.url, '/', null, {
headers: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment