Skip to content

Commit

Permalink
[test] Sync React.version parse logic with codebase (#43820)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 20, 2024
1 parent 1289e89 commit ca7ffd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages-internal/test-utils/src/reactMajor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as React from 'react';

export default Number(React.version.split('.')[0]);
export default parseInt(React.version, 10);

0 comments on commit ca7ffd6

Please sign in to comment.