@@ -121,7 +121,7 @@ describe('Create Draft Release', () => {
121121 } ) ;
122122
123123 describe ( '#_computeBody' , ( ) => {
124- it ( 'computes body for release' , async ( ) => {
124+ it ( 'computes body for release when no hermes versions are passed ' , async ( ) => {
125125 const version = '0.77.1' ;
126126 const changelog = `## v${ version }
127127### Breaking Changes
@@ -134,20 +134,83 @@ describe('Create Draft Release', () => {
134134#### iOS
135135- [PR #3436](https://github.com/facebook/react-native/pull/3436) - Some other change
136136- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change` ;
137- const body = _computeBody ( version , changelog ) ;
137+ const body = _computeBody ( changelog , version ) ;
138138
139139 expect ( body ) . toEqual ( `${ changelog }
140140
141141---
142142
143143Hermes dSYMS:
144- - [Debug](https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/${ version } /react-native-artifacts-${ version } -hermes-framework-dSYM-debug.tar.gz)
145- - [Release](https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/${ version } /react-native-artifacts-${ version } -hermes-framework-dSYM-release.tar.gz)
144+ - [Debug](https://repo1.maven.org/maven2/com/facebook/hermes/hermes-ios/${ version } /hermes-ios-${ version } -hermes-framework-dSYM-debug.tar.gz)
145+ - [Release](https://repo1.maven.org/maven2/com/facebook/hermes/hermes-ios/${ version } /hermes-ios-${ version } -hermes-framework-dSYM-release.tar.gz)
146+
147+ Hermes V1 dSYMS:
148+ - [Debug](https://repo1.maven.org/maven2/com/facebook/hermes/hermes-ios/${ version } /hermes-ios-${ version } -hermes-framework-dSYM-debug.tar.gz)
149+ - [Release](https://repo1.maven.org/maven2/com/facebook/hermes/hermes-ios/${ version } /hermes-ios-${ version } -hermes-framework-dSYM-release.tar.gz)
150+
151+ ReactNativeDependencies dSYMs:
152+ - [Debug](https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/${ version } /react-native-artifacts-${ version } -reactnative-dependencies-dSYM-debug.tar.gz)
153+ - [Release](https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/${ version } /react-native-artifacts-${ version } -reactnative-dependencies-dSYM-release.tar.gz)
154+
155+ ReactNative Core dSYMs:
156+ - [Debug](https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/${ version } /react-native-artifacts-${ version } -reactnative-core-debug.tar.gz)
157+ - [Release](https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/${ version } /react-native-artifacts-${ version } -reactnative-core-release.tar.gz)
158+
159+ ---
160+
161+ You can file issues or pick requests against this release [here](https://github.com/reactwg/react-native-releases/issues/new/choose).
162+
163+ ---
164+
165+ To help you upgrade to this version, you can use the [Upgrade Helper](https://react-native-community.github.io/upgrade-helper/) ⚛️.
166+
167+ ---
168+
169+ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/react-native/blob/main/CHANGELOG.md).` ) ;
170+ } ) ;
171+
172+ it ( 'computes body for release when hermes versions are passed' , async ( ) => {
173+ const version = '0.77.1' ;
174+ const hermesVersion = '0.15.0' ;
175+ const hermesV1Version = '250829098.0.2' ;
176+ const changelog = `## v${ version }
177+ ### Breaking Changes
178+ - [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
179+
180+ #### Android
181+ - [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
182+ - [PR #3457](https://github.com/facebook/react-native/pull/3457) - Some other change
183+
184+ #### iOS
185+ - [PR #3436](https://github.com/facebook/react-native/pull/3436) - Some other change
186+ - [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change` ;
187+ const body = _computeBody (
188+ changelog ,
189+ version ,
190+ hermesVersion ,
191+ hermesV1Version ,
192+ ) ;
193+
194+ expect ( body ) . toEqual ( `${ changelog }
195+
196+ ---
197+
198+ Hermes dSYMS:
199+ - [Debug](https://repo1.maven.org/maven2/com/facebook/hermes/hermes-ios/${ hermesVersion } /hermes-ios-${ hermesVersion } -hermes-framework-dSYM-debug.tar.gz)
200+ - [Release](https://repo1.maven.org/maven2/com/facebook/hermes/hermes-ios/${ hermesVersion } /hermes-ios-${ hermesVersion } -hermes-framework-dSYM-release.tar.gz)
201+
202+ Hermes V1 dSYMS:
203+ - [Debug](https://repo1.maven.org/maven2/com/facebook/hermes/hermes-ios/${ hermesV1Version } /hermes-ios-${ hermesV1Version } -hermes-framework-dSYM-debug.tar.gz)
204+ - [Release](https://repo1.maven.org/maven2/com/facebook/hermes/hermes-ios/${ hermesV1Version } /hermes-ios-${ hermesV1Version } -hermes-framework-dSYM-release.tar.gz)
146205
147206ReactNativeDependencies dSYMs:
148207- [Debug](https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/${ version } /react-native-artifacts-${ version } -reactnative-dependencies-dSYM-debug.tar.gz)
149208- [Release](https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/${ version } /react-native-artifacts-${ version } -reactnative-dependencies-dSYM-release.tar.gz)
150209
210+ ReactNative Core dSYMs:
211+ - [Debug](https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/${ version } /react-native-artifacts-${ version } -reactnative-core-debug.tar.gz)
212+ - [Release](https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/${ version } /react-native-artifacts-${ version } -reactnative-core-release.tar.gz)
213+
151214---
152215
153216You can file issues or pick requests against this release [here](https://github.com/reactwg/react-native-releases/issues/new/choose).
0 commit comments