Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): bump detox from 19.13.0 to 20.14.7 in /example #207

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading