Skip to content

Commit 300a6c5

Browse files
authored
fix: ci e2e test snapshot drift (#2779)
1 parent f961930 commit 300a6c5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

__e2e__/__snapshots__/config.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exports[`shows up current config without unnecessary output 1`] = `
1212
"platforms": {
1313
"ios": {
1414
"podspecPath": "<<REPLACED_ROOT>>/TestProject/node_modules/react-native-safe-area-context/react-native-safe-area-context.podspec",
15-
"version": "5.6.2",
15+
"version": "<<REPLACED>>",
1616
"configurations": [],
1717
"scriptPhases": []
1818
},

__e2e__/config.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ test('shows up current config without unnecessary output', () => {
7373
expect(parsedStdout.reactNativeVersion).toMatch(/^\d+\.\d+(\.\d+)?$/);
7474
parsedStdout.reactNativeVersion = '<<REPLACED>>';
7575

76+
Object.values(parsedStdout.dependencies).forEach((dependency: any) => {
77+
if (dependency.platforms?.ios?.version) {
78+
dependency.platforms.ios.version = '<<REPLACED>>';
79+
}
80+
});
81+
7682
const expectedXcodeProject =
7783
process.platform === 'darwin'
7884
? {

0 commit comments

Comments
 (0)