From f794cf4dead09652eae471fd751260dad97bb0a7 Mon Sep 17 00:00:00 2001 From: JMH Date: Sat, 9 Feb 2019 10:49:44 -0600 Subject: [PATCH] [detox] Add test for importing default export --- types/detox/test/detox-jest-setup-tests.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/detox/test/detox-jest-setup-tests.ts b/types/detox/test/detox-jest-setup-tests.ts index 7a2a9a3901..c0b1ea2127 100644 --- a/types/detox/test/detox-jest-setup-tests.ts +++ b/types/detox/test/detox-jest-setup-tests.ts @@ -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 () => {