Commit f4bc5c26 authored by Tobias Koppers's avatar Tobias Koppers

Skip get_compilation_issues tests in webpack mode

The tool is Turbopack-only; wrapping the suite in the
`IS_TURBOPACK_TEST ? describe : describe.skip` pattern ensures CI
doesn't run it in the webpack dev job where the endpoint state is
unavailable.
Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
parent 3ebfe319
...@@ -2,7 +2,10 @@ import { FileRef, nextTestSetup } from 'e2e-utils' ...@@ -2,7 +2,10 @@ import { FileRef, nextTestSetup } from 'e2e-utils'
import path from 'path' import path from 'path'
import { retry } from 'next-test-utils' import { retry } from 'next-test-utils'
describe('mcp-server get_compilation_issues tool', () => { // get_compilation_issues is Turbopack-only (requires live endpoint state)
;(process.env.IS_TURBOPACK_TEST ? describe : describe.skip)(
'mcp-server get_compilation_issues tool',
() => {
const { next, skipped } = nextTestSetup({ const { next, skipped } = nextTestSetup({
files: new FileRef( files: new FileRef(
path.join(__dirname, 'fixtures', 'compilation-issues-app') path.join(__dirname, 'fixtures', 'compilation-issues-app')
...@@ -56,7 +59,9 @@ describe('mcp-server get_compilation_issues tool', () => { ...@@ -56,7 +59,9 @@ describe('mcp-server get_compilation_issues tool', () => {
await retry(async () => { await retry(async () => {
const responseText = await callGetCompilationIssues() const responseText = await callGetCompilationIssues()
response = JSON.parse(responseText) response = JSON.parse(responseText)
expect(response.routes['/broken/page']?.issues?.length).toBeGreaterThan(0) expect(response.routes['/broken/page']?.issues?.length).toBeGreaterThan(
0
)
}) })
const issue = response.routes['/broken/page'].issues[0] const issue = response.routes['/broken/page'].issues[0]
...@@ -92,4 +97,5 @@ describe('mcp-server get_compilation_issues tool', () => { ...@@ -92,4 +97,5 @@ describe('mcp-server get_compilation_issues tool', () => {
).toBe(true) ).toBe(true)
}) })
}) })
}) }
)
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