Skip to content

Commit ad76128

Browse files
committed
fix test errors
1 parent 42ad4b8 commit ad76128

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/build_and_test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444

4545
- name: Build
4646
run: |
47+
yarn install --frozen-lockfile
4748
yarn clean
4849
yarn download
4950
yarn start
@@ -80,6 +81,10 @@ jobs:
8081
name: archive
8182
path: archive
8283

84+
- name: Install node packages
85+
run: yarn install --frozen-lockfile
86+
working-directory: test
87+
8388
- name: Run test
8489
uses: reactivecircus/android-emulator-runner@v2
8590
with:

test/android/app/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ android {
134134
}
135135
}
136136

137+
testBuildType 'release'
138+
137139
// applicationVariants are e.g. debug, release
138140
applicationVariants.all { variant ->
139141
variant.outputs.each { output ->
@@ -169,10 +171,10 @@ dependencies {
169171
implementation jscFlavor
170172
}
171173

172-
androidTestImplementation 'androidx.test:core:1.4.0';
173-
androidTestImplementation 'androidx.test.ext:junit:1.1.3';
174-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
175-
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.4.0';
174+
androidTestImplementation 'androidx.test:core:1.5.0';
175+
androidTestImplementation 'androidx.test.ext:junit:1.1.5';
176+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
177+
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.5.1';
176178
}
177179

178180
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.test">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32

43
<instrumentation android:targetPackage="com.test"
54
android:name="androidx.test.runner.AndroidJUnitRunner"/>
6-
</manifest>
5+
</manifest>

0 commit comments

Comments
 (0)