Skip to content

Commit

Permalink
Revert "docs: add instructions for debugging tests via terminal (vite…
Browse files Browse the repository at this point in the history
…st-dev#2085)"

This reverts commit dd7c80b.
  • Loading branch information
joshnuss committed Feb 14, 2023
1 parent 9e03f2b commit c0f18d6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions docs/guide/debugging.md
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 c0f18d6

Please sign in to comment.