From c0f18d633168b5792b067c3048432ee34633a9bc Mon Sep 17 00:00:00 2001 From: Joshua Nussbaum Date: Tue, 14 Feb 2023 11:15:13 -0500 Subject: [PATCH] Revert "docs: add instructions for debugging tests via terminal (#2085)" This reverts commit dd7c80bee8112e2769193ff36d4aff8acb3a95ea. --- docs/guide/debugging.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/docs/guide/debugging.md b/docs/guide/debugging.md index f9f5850baf04..77fd4d9f49cf 100644 --- a/docs/guide/debugging.md +++ b/docs/guide/debugging.md @@ -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*