Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test debugging opens a separate readonly file #1084

Open
giacomorebonato opened this issue Feb 13, 2025 · 0 comments
Open

Test debugging opens a separate readonly file #1084

giacomorebonato opened this issue Feb 13, 2025 · 0 comments
Labels
support Questions, discussions, and general support

Comments

@giacomorebonato
Copy link

Runtime

NodeJS

Runtime version

22.13.0

Module version

@hapi/[email protected]

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?

@giacomorebonato giacomorebonato added the support Questions, discussions, and general support label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Questions, discussions, and general support
Projects
None yet
Development

No branches or pull requests

1 participant