Skip to content

Commit

Permalink
React is back to using canary in the version string
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Dec 18, 2024
1 parent 1c252ea commit 0920927
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion test/e2e/app-dir/rsc-basic/rsc-basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ describe('app dir - rsc basics', () => {

// TODO: (PPR) remove once PPR is stable
const bundledReactVersionPattern =
process.env.__NEXT_EXPERIMENTAL_PPR === 'true' ? '-experimental-' : '-rc-'
process.env.__NEXT_EXPERIMENTAL_PPR === 'true'
? '-experimental-'
: '-canary-'

it('should not use bundled react for pages with app', async () => {
const ssrPaths = ['/pages-react', '/edge-pages-react']
Expand Down
4 changes: 2 additions & 2 deletions test/production/custom-server/custom-server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ describe('custom server', () => {
})

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

it('should render pages with installed react', async () => {
Expand Down

0 comments on commit 0920927

Please sign in to comment.