Skip to content

Commit

Permalink
fix jhipster#889 Detox iOS error in GitHub Actions.
Browse files Browse the repository at this point in the history
"The "ios.sim.release" configuration utilizes a deprecated all-in-one schema, that is not supported by the current version of Detox."
  • Loading branch information
mhmmdd committed Feb 3, 2023
1 parent 7a38151 commit 5db2f3a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions generators/app/templates/.detoxrc.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,24 @@
"configurations": {
"ios.sim.release": {
"binaryPath": "e2e/Exponent.app",
"device": "ios.simulator",
"app": "ios.release"
}
},
"apps": {
"ios.release": {
"type": "ios.app",
"binaryPath": "e2e/Exponent.app"
}
},
"devices": {
"ios.simulator": {
"type": "ios.simulator",
"device": {
"type": "iPhone 12"
}
"device": { "type": "iPhone 12" }
},
"android.emulator": {
"type": "android.apk",
"device": { "avdName": "Pixel_30_API" }
}
},
"artifacts": {
Expand Down
2 changes: 1 addition & 1 deletion generators/app/templates/e2e/config.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"testRunner": "jest-circus/runner",
"testTimeout": 300000,
"testRegex": "\\.spec\\.js$",
"reporters": ["detox/runners/jest/streamlineReporter"],
"reporters": ["detox/runners/jest/reporter"],
"verbose": true
}

0 comments on commit 5db2f3a

Please sign in to comment.