Unverified Commit 3a6fa577 authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

test: skip dev/deploy testing for…

test: skip dev/deploy testing for `test/e2e/app-dir/segment-cache/revalidation/segment-cache-revalidation.test.ts` (#75249)

### Why?

Since this test creates a mock server to fetch before creating a Next.js
instance, it will fail on the deployment test due to a mismatch in the
location of the server and the instance. The test did try to skip when
deployed but it was after the `createNext` logic, which triggered the
deployment before skipping.

### How?

Move the skip before any `beforeAll` logic like creating an instance.

---------
Co-authored-by: 's avatarZack Tanner <1939140+ztanner@users.noreply.github.com>
parent baa4f787
...@@ -6,6 +6,11 @@ import { createTestLog } from 'test-log' ...@@ -6,6 +6,11 @@ import { createTestLog } from 'test-log'
import { findPort } from 'next-test-utils' import { findPort } from 'next-test-utils'
describe('segment cache (revalidation)', () => { describe('segment cache (revalidation)', () => {
if (isNextDev || isNextDeploy) {
test('disabled in development / deployment', () => {})
return
}
let port = -1 let port = -1
let server let server
let pendingRequests = new Map() let pendingRequests = new Map()
...@@ -45,11 +50,6 @@ describe('segment cache (revalidation)', () => { ...@@ -45,11 +50,6 @@ describe('segment cache (revalidation)', () => {
server?.close() server?.close()
}) })
if (isNextDev || isNextDeploy) {
test('disabled in development / deployment', () => {})
return
}
it('evict client cache when Server Action calls revalidatePath', async () => { it('evict client cache when Server Action calls revalidatePath', async () => {
let act: ReturnType<typeof createRouterAct> let act: ReturnType<typeof createRouterAct>
const browser = await next.browser('/', { const browser = await next.browser('/', {
......
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