[detox] use export = instead of export default for test runners

This commit is contained in:
Jeff Held
2019-02-14 16:00:53 -06:00
parent ff6ca21aa5
commit 5adceb834f
4 changed files with 4 additions and 5 deletions

View File

@@ -9,4 +9,4 @@ interface DetoxJestAdapter {
declare const adapter: DetoxJestAdapter;
export default adapter;
export = adapter;

View File

@@ -6,4 +6,4 @@ interface DetoxMochaAdapter {
declare const adapter: DetoxMochaAdapter;
export default adapter;
export = adapter;

View File

@@ -2,8 +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";
import * as adapter from "detox/runners/jest/adapter";
// Normally the Detox configuration from the project's package.json like so:
// const config = require("./package.json").detox;

View File

@@ -5,7 +5,7 @@ declare var beforeEach: (callback: () => void) => void;
declare var after: (callback: () => void) => void;
declare var afterEach: (callback: () => void) => void;
import adapter from "detox/runners/mocha/adapter";
import * as adapter from "detox/runners/mocha/adapter";
// Normally the Detox configuration from the project's package.json like so:
// const config = require("./package.json").detox;