Merge pull request #31495 from solkaz/detox-fix

[detox] Fix typo for location of detox test runner adapters
This commit is contained in:
Wesley Wigham
2018-12-25 22:43:12 -08:00
committed by GitHub
6 changed files with 19 additions and 13 deletions
+12
View File
@@ -0,0 +1,12 @@
interface DetoxJestAdapter {
detox: Detox.Detox;
beforeEach: () => Promise<void>;
afterAll: () => Promise<void>;
// These are not publicly used, but are defined in order to overlap with the jasmine.CustomReporter interface (which is a weak interface)
specDone: () => void;
specStarted: () => void;
}
declare const adapter: DetoxJestAdapter;
export default adapter;
-9
View File
@@ -1,9 +0,0 @@
interface DetoxJestAdapter {
detox: Detox.Detox;
beforeEach: () => Promise<void>;
afterAll: () => Promise<void>;
}
declare const adapter: DetoxJestAdapter;
export default adapter;
+4 -1
View File
@@ -2,12 +2,15 @@ declare var beforeAll: (callback: () => void) => void;
declare var beforeEach: (callback: () => void) => void;
declare var afterAll: (callback: () => void) => void;
import adapter from "detox/runners/jest/adapters";
import adapter from "detox/runners/jest/adapter";
// Normally the Detox configuration from the project's package.json like so:
// const config = require("./package.json").detox;
declare const config: any;
declare const jasmine: any;
jasmine.getEnv().addReporter(adapter);
beforeAll(async () => {
await detox.init(config);
+1 -1
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/adapters";
import adapter from "detox/runners/mocha/adapter";
// Normally the Detox configuration from the project's package.json like so:
// const config = require("./package.json").detox;
+2 -2
View File
@@ -15,8 +15,8 @@
},
"files": [
"index.d.ts",
"runners/jest/adapters/index.d.ts",
"runners/mocha/adapters/index.d.ts",
"runners/jest/adapter/index.d.ts",
"runners/mocha/adapter/index.d.ts",
"test/detox-global-tests.ts",
"test/detox-module-tests.ts",
"test/detox-jest-setup-tests.ts",