Skip to content

Commit

Permalink
build(deps-dev): bump detox from 19.13.0 to 20.14.7 in /example (#207)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
dependabot[bot] and sarahsporck authored Jan 24, 2024
1 parent 2456902 commit 3134696
Show file tree
Hide file tree
Showing 9 changed files with 621 additions and 562 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ios-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
brew install applesimutils
- name: Build for detox
run: yarn detox build
run: yarn detox build -c ios.sim.release

- name: Test with detox
run: yarn detox test --debug-synchronization 200
run: yarn detox test --debug-synchronization 200 -c ios.sim.release
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Please add unreleased changes in the following style:
PR Title ([#123](link to my pr))
```

chore: update detox ([#207](https://github.com/maplibre/maplibre-react-native/pull/207))
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))
chore: update prettier and eslint-plugin-prettier ([#111](https://github.com/maplibre/maplibre-react-native/pull/111))

Expand Down
83 changes: 83 additions & 0 deletions example/.detoxrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/** @type {Detox.DetoxConfig} */
module.exports = {
testRunner: {
args: {
'$0': 'jest',
config: 'e2e/jest.config.js'
},
jest: {
setupTimeout: 120000
}
},
apps: {
'ios.debug': {
type: 'ios.app',
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/RNMaplibreExample.app',
build: 'xcodebuild -workspace ios/RNMaplibreExample.xcworkspace -scheme RNMaplibreExample -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build'
},
'ios.release': {
type: 'ios.app',
binaryPath: 'ios/build/Build/Products/Release-iphonesimulator/RNMaplibreExample.app',
build: 'xcodebuild -workspace ios/RNMaplibreExample.xcworkspace -scheme RNMaplibreExample -configuration Release -sdk iphonesimulator -derivedDataPath ios/build'
},
'android.debug': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
build: 'cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug',
reversePorts: [
8081
]
},
'android.release': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',
build: 'cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release'
}
},
devices: {
simulator: {
type: 'ios.simulator',
device: {
type: 'iPhone 14'
}
},
attached: {
type: 'android.attached',
device: {
adbName: '.*'
}
},
emulator: {
type: 'android.emulator',
device: {
avdName: 'Pixel_3a_API_30_x86'
}
}
},
configurations: {
'ios.sim.debug': {
device: 'simulator',
app: 'ios.debug'
},
'ios.sim.release': {
device: 'simulator',
app: 'ios.release'
},
'android.att.debug': {
device: 'attached',
app: 'android.debug'
},
'android.att.release': {
device: 'attached',
app: 'android.release'
},
'android.emu.debug': {
device: 'emulator',
app: 'android.debug'
},
'android.emu.release': {
device: 'emulator',
app: 'android.release'
}
}
};
8 changes: 0 additions & 8 deletions example/e2e/config.json

This file was deleted.

23 changes: 0 additions & 23 deletions example/e2e/environment.js

This file was deleted.

12 changes: 12 additions & 0 deletions example/e2e/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
rootDir: '..',
testMatch: ['<rootDir>/e2e/**/*.e2e.js'],
testTimeout: 120000,
maxWorkers: 1,
globalSetup: 'detox/runners/jest/globalSetup',
globalTeardown: 'detox/runners/jest/globalTeardown',
reporters: ['detox/runners/jest/reporter'],
testEnvironment: 'detox/runners/jest/testEnvironment',
verbose: true,
};
8 changes: 4 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"react-native-elements": "^3.4.3",
"react-native-gesture-handler": "^2.13.1",
"react-native-safe-area-context": "^4.6.4",
"react-native-screens": "^3.25.0",
"react-native-svg": "^12.1.0",
"react-native-screens": "^3.29.0",
"react-native-svg": "^14.1.0",
"react-native-vector-icons": "10.0.0"
},
"devDependencies": {
Expand All @@ -45,9 +45,9 @@
"@types/react": "^18.2.14",
"@types/react-native": "^0.72.2",
"babel-plugin-module-resolver": "^4.1.0",
"detox": "^19.1.0",
"detox": "^20.17.0",
"glob-to-regexp": "^0.4.0",
"jest": "^29.6.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"jetifier": "^2.0.0",
"metro-react-native-babel-preset": "^0.77.0",
Expand Down
2 changes: 1 addition & 1 deletion example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"react-native": ["./node_modules/@types/react-native"]
},
},
"include": ["./src/**/*", "index.js"],
"include": ["./src/**/*", "index.js", "e2e/firstTest.e2e.js"],
}
Loading

0 comments on commit 3134696

Please sign in to comment.