From 8ab33f1e97ccc1afbb7e46518d6f24eca8d075e1 Mon Sep 17 00:00:00 2001 From: Joshua Nussbaum Date: Tue, 21 Feb 2023 09:03:09 -0500 Subject: [PATCH] revert: "docs: add instructions for debugging tests via terminal" (#2869) --- 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*