You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change fixes the script that updates the RN Version to also update the Codegen snapshots so that they are in sync with the current version of React Native.
3
+
It also updates the Snapshot as it was failing in rc.0
4
+
5
+
## Changelog:
6
+
[Internal] - Fixed script that updates the react native versions
7
+
8
+
## Test Plan:
9
+
Tested locally by running `node ./scripts/releases/set-rn-artifacts-version --built-type release --to-version 0.80.0-rc.0` and verifying that the snapshot file was getting updated. I then run the `yarn test
10
+
generate-artifacts-executor-test.js` command to verify that the tests were passing.
Copy file name to clipboardExpand all lines: scripts/releases/__tests__/__snapshots__/set-rn-artifacts-version-test.js.snap
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,12 @@ constexpr struct {
121
121
"
122
122
`;
123
123
124
+
exports[`updateReactNativeArtifacts should set nightly version: packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap 1`] = `
version = \\"0.81.0-nightly-29282302-abcd1234\\\\"
128
+
`;
129
+
124
130
exports[`updateReactNativeArtifacts should set release version: packages/react-native/Libraries/Core/ReactNativeVersion.js 1`] = `
125
131
"/**
126
132
* Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -241,3 +247,9 @@ constexpr struct {
241
247
} // namespace facebook::react
242
248
"
243
249
`;
250
+
251
+
exports[`updateReactNativeArtifacts should set release version: packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap 1`] = `
0 commit comments