yarn detox 18.6.0

latest releases: 20.27.0, 20.26.3-smoke.0, 20.26.2...
3 years ago

Main Feature

JS: new Detox configuration format with basic support for switching between multiple apps (@noomorph, via #2587).

In a nutshell, instead of requiring configuration "monoliths" we now allow for the deconstruction and reconstruction of the Detox configuration into its various building blocks:

  • Devices configuration
  • Application configuration
  • Reconstruction into actual configurations using references to the above entities

Conceptual template:

{
  // ...
  "detox": {
    // ...
    "devices" {
      // ... see the docs ...
    },
    "apps": {
      // ... see the docs ...
    },
    "configurations": {
      "ios.sim.debug": {
        "device": "simulator",
        "app": "ios.debug"
      },
      "android.emu.release": {
        "device": "emulator",
        "app": "android.release"
      },
      "android.att.release": {
        "device": "android.attached",
        "app": "android.release"
      },
      "android.genymotion.release": {
        "device": "android.genycloud",
        "app": "android.release"
      }
    }
  }
}

Important: On top of just syntax-boosting, this more flexible form of configuring Detox now also opens the door to running more than one application throughout the test suite, using the new device.selectApp() API that accompanies this change. See migration notes for complete info.

Additional Features

  • iOS: Changes for Xcode 12.5 beta compilation support (@LeoNatan, via #2640)

Fixes

  • iOS: Fix for "Exceeding timeout when using onRefresh prop" (#2590, by @LeoNatan via #2639)
  • iOS: Fix for "SwiftUI Element matchers, visibility & actions (like tap) not working with detox 18.x" (#2636, by @LeoNatan via #2638)

Don't miss a new detox release

NewReleases is sending notifications on new releases.