hapijs / hapijs/lab

Test debugging opens a separate readonly file

Open
#1,084 0 comments 0 reactions 0 assignees View on GitHub
support
Dominant language
JavaScript
Stars
736
Forks
177
PR merge metrics
No merged PRs in 30d

Description

### Runtime

NodeJS

### Runtime version

22.13.0

### Module version

@hapi/lab@26.0.0

### Used with

Hapi

### Any other relevant information

I find myself in situations where it's very useful to debug unit tests with VSCode and placing breakpoints in the code.

* I am also using TypeScript, hence the flag `--typescript` is passed
* `--sourcemaps` are also enabled

### How can we help?

When I run the test with `--inspect` it stops in a transpiled readonly copy of the file that I can't edit. For example in the file I see all the `require()` wrapped by `__importDefault(require())`.

I tried to provide basic reproduction steps, but the problem doesn't appear.
Do you have any clues what could generate this issue in my current project?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.