mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Merge pull request #31495 from solkaz/detox-fix
[detox] Fix typo for location of detox test runner adapters
This commit is contained in:
+12
@@ -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;
|
||||
@@ -1,9 +0,0 @@
|
||||
interface DetoxJestAdapter {
|
||||
detox: Detox.Detox;
|
||||
beforeEach: () => Promise<void>;
|
||||
afterAll: () => Promise<void>;
|
||||
}
|
||||
|
||||
declare const adapter: DetoxJestAdapter;
|
||||
|
||||
export default adapter;
|
||||
Vendored
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user