Skip to content

Commit cd6c50f

Browse files
hi-ogawaOpenCode
andauthored
test(rsc): unskip performance track test in canary CI (#1308)
Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: OpenCode <noreply@opencode.ai>
1 parent 32611a2 commit cd6c50f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

packages/plugin-rsc/e2e/performance-track.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { type CDPSession, expect, test } from '@playwright/test'
2+
import React from 'react'
23
import { useFixture } from './fixture'
34

45
test.describe('performance-track', () => {
5-
// Server Components performance tracks are flaky and require a Chromium trace
6-
// plus a React build that emits them (canary/experimental), so this is opt-in
7-
// via `TEST_PERFORMANCE_TRACK=1` for local runs and is not exercised in CI.
8-
test.skip(!process.env.TEST_PERFORMANCE_TRACK)
6+
test.skip(
7+
!process.env.TEST_PERFORMANCE_TRACK &&
8+
!/canary|experimental/.test(React.version),
9+
)
910

1011
const f = useFixture({ root: 'examples/performance-track', mode: 'dev' })
1112

0 commit comments

Comments
 (0)