Skip to content

Commit

Permalink
test: adopt react-native 0.77.0 in e2e test app
Browse files Browse the repository at this point in the history
note that android and ios now need you to hit 'j' in bundler window
to open the new React Native DevTools to see the console output

react-native-macos temporarily maintains console output in bundler
window since devtools doesn't work with it

alternatively you can grep the device logs for ReactNativeJS
  • Loading branch information
mikehardy committed Feb 10, 2025
1 parent 2b30de1 commit 37c3805
Show file tree
Hide file tree
Showing 8 changed files with 1,092 additions and 1,698 deletions.
4 changes: 2 additions & 2 deletions tests/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ buildscript {
ext.compileSdkVersion = 35
ext.targetSdkVersion = 34

ext.ndkVersion = "26.1.10909125"
ext.ndkVersion = "27.1.12297006"

ext.kotlinVersion = '2.0.0' // https://kotlinlang.org/releases.html
ext.kotlinVersion = '2.0.21' // https://kotlinlang.org/releases.html
ext.supportLibVersion = '1.13.1' // this maps to androidx.core https://developer.android.com/jetpack/androidx/releases/core
ext.appCompatVersion = '1.7.0' // this maps to androidx.appcompat https://developer.android.com/jetpack/androidx/releases/appcompat
ext.supportVersion = ext.supportLibVersion
Expand Down
9 changes: 7 additions & 2 deletions tests/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@
*/

import React from 'react';
import { StyleSheet, View, StatusBar, AppRegistry } from 'react-native';
import { StyleSheet, View, StatusBar, AppRegistry, LogBox } from 'react-native';

import { JetProvider, ConnectionText, StatusEmoji, StatusText } from 'jet';

// react-native-macos 0.77.0 - pops an empty, non-dismissable logbox
if (Platform.other) {
// ...unless you ignore all logs in logbox
LogBox.ignoreAllLogs();
}

const platformSupportedModules = [];

if (Platform.other) {
Expand Down Expand Up @@ -63,7 +69,6 @@ ErrorUtils.setGlobalHandler((err, isFatal) => {
throw err;
});

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function loadTests(_) {
describe('React Native Firebase', function () {
if (!globalThis.RNFBDebug) {
Expand Down
Loading

0 comments on commit 37c3805

Please sign in to comment.