[detox] Add test for importing default export

This commit is contained in:
JMH
2019-02-09 10:49:44 -06:00
parent 8b70ba807f
commit f794cf4dea
+2 -1
View File
@@ -2,6 +2,7 @@ declare var beforeAll: (callback: () => void) => void;
declare var beforeEach: (callback: () => void) => void;
declare var afterAll: (callback: () => void) => void;
import defaultDetox from "detox";
import adapter from "detox/runners/jest/adapter";
// Normally the Detox configuration from the project's package.json like so:
@@ -18,7 +19,7 @@ beforeAll(async () => {
initGlobals: false,
launchApp: false,
};
await detox.init(config, initOptions);
await defaultDetox.init(config, initOptions);
});
beforeEach(async () => {