Skip to content

Commit 37b6936

Browse files
committed
test: look for for "rc" instead of "beta" in react version
1 parent 6761b98 commit 37b6936

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/e2e/app-dir/rsc-basic/rsc-basic.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ describe('app dir - rsc basics', () => {
470470

471471
// TODO: (PPR) remove once PPR is stable
472472
const bundledReactVersionPattern =
473-
process.env.__NEXT_EXPERIMENTAL_PPR === 'true' ? '-experimental-' : '-beta-'
473+
process.env.__NEXT_EXPERIMENTAL_PPR === 'true' ? '-experimental-' : '-rc-'
474474

475475
// TODO: (React 19) During Beta, bundled and installed version match.
476476
it.skip('should not use bundled react for pages with app', async () => {

test/production/custom-server/custom-server.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ describe('custom server', () => {
2020
})
2121

2222
describe('with app dir', () => {
23-
it('should render app with react beta', async () => {
23+
it('should render app with react rc', async () => {
2424
const $ = await next.render$(`/1`)
25-
expect($('body').text()).toMatch(/app: .+-beta/)
25+
expect($('body').text()).toMatch(/app: .+-rc/)
2626
})
2727

2828
it('should render pages with installed react', async () => {
2929
const $ = await next.render$(`/2`)
3030
expect($('body').text()).toMatch(/pages:/)
31-
// TODO: should not match beta once React 19 stable is out
32-
expect($('body').text()).toMatch(/beta/)
31+
// TODO: should not match rc once React 19 stable is out
32+
expect($('body').text()).toMatch(/rc/)
3333
})
3434
})
3535
})

0 commit comments

Comments
 (0)