yarn detox 17.3.0

latest releases: 20.22.0-smoke.0, 20.21.0, 20.20.3...
3 years ago

New Major Feature: Element Screenshot (Android-only!) (#2012)

On top of Detox' existing device.takeScreenshot() API, we now support taking a visual screenshot of specific on-screen elements.
Refer to our documentation for full details.

Note: As a side-effect (see #2214), we introduced a subtle breaking change in all drivers, which affects external plug-in drivers you may have had implemented for your project. The fix is simple, and should be applied according to the following diff-snippet:

class Expect {
-  constructor(invocationManager) {
+  constructor({ invocationManager }) {
     this._invocationManager = invocationManager;
  }
}

class PluginDriver {
  constructor() {
-    this.matchers = new Expect(new invocationManager());
  }
}

-module.exports = PluginDriver;
+module.exports = {
+  DriverClass: PluginDriver,
+  ExpectClass: Expect,
+}

Namely, Detox now owns the instantiation of the Expect class, instead of the plugin.

More

  • Added support for --inspect-brk flag to Detox' cli which, when provided, would launch Detox' underlying test-runner (e.g. Jest, Mocha) in a wait-for-debugger mode (more precisely, it would launch the node.js instance in inspect mode) (#2177)

Don't miss a new detox release

NewReleases is sending notifications on new releases.