debugger: Fix running JS tests when worktree root and package root do not coincide (#32644)

- construct the correct path to the test library based on the location
of package.json
- run scripts from the package root where they were defined
- run tests in the directory of the defining file

Release Notes:

- Debugger Beta: fixed running JS tests when the worktree root is above
the location of package.json.

---------

Co-authored-by: Anthony <anthony@zed.dev>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
bcd79331b9Cole Miller committed on 6/13/2025, 5:03:07 AM· committed by GitHubparent9166e66
3 files changedLine totals unavailable