Skip to content

Commit

Permalink
revert: "docs: add instructions for debugging tests via terminal" (#2869
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joshnuss authored Feb 21, 2023
1 parent b67a5fb commit 8ab33f1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions docs/guide/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@ title: Debugging | Guide

# Debugging

## Terminal

To debug a test file without an IDE, you can use [`ndb`](https://github.com/GoogleChromeLabs/ndb). Just add a `debugger` statement anywhere in your code, and then run `ndb`:

```sh
# install ndb globally
npm install -g ndb

# alternatively, with yarn
yarn global add ndb

# run tests with debugger enabled
ndb npm run test
```

## VSCode

Quick way to debug tests in VSCode is via `JavaScript Debug Terminal`. Open a new `JavaScript Debug Terminal` and run `npm run test` or `vitest` directly. *this works with any code ran in Node, so will work with most JS testing frameworks*
Expand Down

0 comments on commit 8ab33f1

Please sign in to comment.