Skip to content

Commit 3134696

Browse files
build(deps-dev): bump detox from 19.13.0 to 20.14.7 in /example (#207)
* build(deps-dev): bump detox from 19.13.0 to 20.14.7 in /example Bumps [detox](https://github.com/wix/Detox) from 19.13.0 to 20.14.7. - [Release notes](https://github.com/wix/Detox/releases) - [Commits](wix/Detox@19.13.0...20.14.7) --- updated-dependencies: - dependency-name: detox dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * update detox --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sarah <[email protected]>
1 parent 2456902 commit 3134696

9 files changed

+621
-562
lines changed

.github/workflows/ios-actions.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
brew install applesimutils
3838
3939
- name: Build for detox
40-
run: yarn detox build
40+
run: yarn detox build -c ios.sim.release
4141

4242
- name: Test with detox
43-
run: yarn detox test --debug-synchronization 200
43+
run: yarn detox test --debug-synchronization 200 -c ios.sim.release

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Please add unreleased changes in the following style:
55
PR Title ([#123](link to my pr))
66
```
77

8+
chore: update detox ([#207](https://github.com/maplibre/maplibre-react-native/pull/207))
89
chore: update expo-config and expo-scripts ([#47](https://github.com/maplibre/maplibre-react-native/pull/104) and [#69](https://github.com/maplibre/maplibre-react-native/pull/69))
910
chore: update prettier and eslint-plugin-prettier ([#111](https://github.com/maplibre/maplibre-react-native/pull/111))
1011

example/.detoxrc.js

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/** @type {Detox.DetoxConfig} */
2+
module.exports = {
3+
testRunner: {
4+
args: {
5+
'$0': 'jest',
6+
config: 'e2e/jest.config.js'
7+
},
8+
jest: {
9+
setupTimeout: 120000
10+
}
11+
},
12+
apps: {
13+
'ios.debug': {
14+
type: 'ios.app',
15+
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/RNMaplibreExample.app',
16+
build: 'xcodebuild -workspace ios/RNMaplibreExample.xcworkspace -scheme RNMaplibreExample -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build'
17+
},
18+
'ios.release': {
19+
type: 'ios.app',
20+
binaryPath: 'ios/build/Build/Products/Release-iphonesimulator/RNMaplibreExample.app',
21+
build: 'xcodebuild -workspace ios/RNMaplibreExample.xcworkspace -scheme RNMaplibreExample -configuration Release -sdk iphonesimulator -derivedDataPath ios/build'
22+
},
23+
'android.debug': {
24+
type: 'android.apk',
25+
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
26+
build: 'cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug',
27+
reversePorts: [
28+
8081
29+
]
30+
},
31+
'android.release': {
32+
type: 'android.apk',
33+
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',
34+
build: 'cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release'
35+
}
36+
},
37+
devices: {
38+
simulator: {
39+
type: 'ios.simulator',
40+
device: {
41+
type: 'iPhone 14'
42+
}
43+
},
44+
attached: {
45+
type: 'android.attached',
46+
device: {
47+
adbName: '.*'
48+
}
49+
},
50+
emulator: {
51+
type: 'android.emulator',
52+
device: {
53+
avdName: 'Pixel_3a_API_30_x86'
54+
}
55+
}
56+
},
57+
configurations: {
58+
'ios.sim.debug': {
59+
device: 'simulator',
60+
app: 'ios.debug'
61+
},
62+
'ios.sim.release': {
63+
device: 'simulator',
64+
app: 'ios.release'
65+
},
66+
'android.att.debug': {
67+
device: 'attached',
68+
app: 'android.debug'
69+
},
70+
'android.att.release': {
71+
device: 'attached',
72+
app: 'android.release'
73+
},
74+
'android.emu.debug': {
75+
device: 'emulator',
76+
app: 'android.debug'
77+
},
78+
'android.emu.release': {
79+
device: 'emulator',
80+
app: 'android.release'
81+
}
82+
}
83+
};

example/e2e/config.json

-8
This file was deleted.

example/e2e/environment.js

-23
This file was deleted.

example/e2e/jest.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** @type {import('@jest/types').Config.InitialOptions} */
2+
module.exports = {
3+
rootDir: '..',
4+
testMatch: ['<rootDir>/e2e/**/*.e2e.js'],
5+
testTimeout: 120000,
6+
maxWorkers: 1,
7+
globalSetup: 'detox/runners/jest/globalSetup',
8+
globalTeardown: 'detox/runners/jest/globalTeardown',
9+
reporters: ['detox/runners/jest/reporter'],
10+
testEnvironment: 'detox/runners/jest/testEnvironment',
11+
verbose: true,
12+
};

example/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"react-native-elements": "^3.4.3",
3434
"react-native-gesture-handler": "^2.13.1",
3535
"react-native-safe-area-context": "^4.6.4",
36-
"react-native-screens": "^3.25.0",
37-
"react-native-svg": "^12.1.0",
36+
"react-native-screens": "^3.29.0",
37+
"react-native-svg": "^14.1.0",
3838
"react-native-vector-icons": "10.0.0"
3939
},
4040
"devDependencies": {
@@ -45,9 +45,9 @@
4545
"@types/react": "^18.2.14",
4646
"@types/react-native": "^0.72.2",
4747
"babel-plugin-module-resolver": "^4.1.0",
48-
"detox": "^19.1.0",
48+
"detox": "^20.17.0",
4949
"glob-to-regexp": "^0.4.0",
50-
"jest": "^29.6.0",
50+
"jest": "^29.7.0",
5151
"jest-circus": "^29.7.0",
5252
"jetifier": "^2.0.0",
5353
"metro-react-native-babel-preset": "^0.77.0",

example/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"react-native": ["./node_modules/@types/react-native"]
99
},
1010
},
11-
"include": ["./src/**/*", "index.js"],
11+
"include": ["./src/**/*", "index.js", "e2e/firstTest.e2e.js"],
1212
}

0 commit comments

Comments
 (0)