Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix links in detox object docs #903

Merged
merged 1 commit into from
Aug 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/APIRef.DetoxObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ title: The `detox` Object

### Methods

- [`detox.init()`](#detox.init)
- [`detox.beforeEach()`](#detox.beforeEach)
- [`detox.afterEach()`](#detox.afterEach)
- [`detox.cleanup()`](#detox.cleanup)
- [`detox.init()`](#detoxinit)
- [`detox.beforeEach()`](#detoxbeforeeach)
- [`detox.afterEach()`](#detoxaftereach)
- [`detox.cleanup()`](#detoxcleanup)

### `detox.init()`
The setup phase happens inside `detox.init()`. This is the phase where detox reads its configuration, starts a server, loads its expection library and starts a simulator.
Expand All @@ -27,7 +27,7 @@ before(async () => {
});
```

##### Explicit imports during initialization
##### Explicit imports during initialization
Detox exports `device `, `expect`, `element`, `by` and `waitFor` as globals by default, if you want to control their initialization manually, set init detox with `initGlobals` set to `false`. This is useful when during E2E tests you also need to run regular expectations in node. jest `Expect` for instance, will not be overriden by Detox when this option is used.

```js
Expand Down