Skip to content

Commit

Permalink
chore: change canary version to specific prefix (testing-library#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatanBobi committed Mar 21, 2024
1 parent cf045b4 commit 4e10ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {fireEvent, render, screen, configure} from '../'

// Needs to be changed to 19.0.0 once alpha started.
const isReactExperimental = React.version.startsWith('18.3.0-experimental')
const isReactCanary = React.version.startsWith('18.3.0')
const isReactCanary = React.version.startsWith('18.3.0-canary')

// Needs to be changed to isReactExperimental || isReactCanary once alpha started.
const testGateReact18 = isReactExperimental ? test.skip : test
Expand Down

0 comments on commit 4e10ba3

Please sign in to comment.