typescript: Runners support for bun:test & node:test (#39238)
Closes #21132 Release Notes: - JavaScript/TypeScript: Added support for detecting `node:test` and `bun:test` test runners
This commit is contained in:
@@ -179,10 +179,14 @@ Zed supports debugging JavaScript code out of the box.
|
||||
The following can be debugged without writing additional configuration:
|
||||
|
||||
- Tasks from `package.json`
|
||||
- Tests written using several popular frameworks (Jest, Mocha, Vitest, Jasmine)
|
||||
- Tests written using several popular frameworks (Jest, Mocha, Vitest, Jasmine, Bun, Node)
|
||||
|
||||
Run {#action debugger::Start} ({#kb debugger::Start}) to see a contextual list of these predefined debug tasks.
|
||||
|
||||
> **Note:** Bun test is automatically detected when `@types/bun` is present in `package.json`.
|
||||
>
|
||||
> **Note:** Node test is automatically detected when `@types/node` is present in `package.json` (requires Node.js 20+).
|
||||
|
||||
As for all languages, configurations from `.vscode/launch.json` are also available for debugging in Zed.
|
||||
|
||||
If your use-case isn't covered by any of these, you can take full control by adding debug configurations to `.zed/debug.json`. See below for example configurations.
|
||||
|
||||
Reference in New Issue
Block a user