From 5db2f3adeae6da056e55992b0951b51c11f33ac7 Mon Sep 17 00:00:00 2001 From: mhmmdd Date: Fri, 3 Feb 2023 22:50:02 +0300 Subject: [PATCH] fix #889 Detox iOS error in GitHub Actions. "The "ios.sim.release" configuration utilizes a deprecated all-in-one schema, that is not supported by the current version of Detox." --- generators/app/templates/.detoxrc.json.ejs | 20 +++++++++++++++++--- generators/app/templates/e2e/config.json.ejs | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/generators/app/templates/.detoxrc.json.ejs b/generators/app/templates/.detoxrc.json.ejs index ae7d2598a..786cfc22e 100644 --- a/generators/app/templates/.detoxrc.json.ejs +++ b/generators/app/templates/.detoxrc.json.ejs @@ -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": { diff --git a/generators/app/templates/e2e/config.json.ejs b/generators/app/templates/e2e/config.json.ejs index 7117f1bdf..4959c7296 100644 --- a/generators/app/templates/e2e/config.json.ejs +++ b/generators/app/templates/e2e/config.json.ejs @@ -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 }