mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
23 lines
680 B
Plaintext
23 lines
680 B
Plaintext
Edit your test file. Mark the test you wish to debug as `it.only`, and then add a `debugger` statement
|
|
inside your test to mark a starting point, e.g.:
|
|
|
|
```diff title="e2e/starter.test.js"
|
|
describe('Example', () => {
|
|
beforeAll(async () => {
|
|
await device.launchApp();
|
|
});
|
|
|
|
- it('should debug nicely :-)', async () => {
|
|
+ it.only('should debug nicely :-)', async () => {
|
|
await element(by.text('Filter')).tap();
|
|
+ debugger;
|
|
|
|
});
|
|
```
|
|
|
|
Open `Google Chrome` and go to `chrome://inspect` tab, where you'll see `./node_modules/.bin/jest` as a remote
|
|
target waiting until you click `inspect` to attach to it.
|
|
|
|

|
|
|
|
Happy debugging! |