Closed Magoli1 closed 1 year ago
Kinda related: https://github.com/connor4312/nodejs-testing/issues/4
I think this could be solved by adding an additional setting and then passing that along to
The options could be named nodejsParams
and would be similar to the existing nodejs-testing.include
.
probably supporting the launch
variable like ${workspaceFolder}
would make sense so you could then set it like so
nodejsParams Array:
--import
${workspaceFolder}/my-file.js
--loader
esmock
and then we could just pass it along to the spawn
such a feature would solve this and #8
@connor4312 shall I prepare a Pull Request for this feature?
Sure, I'd be happy to take a PR, just haven't had a lot of time to work on this recently.
nice - I will start working on it 👍
Published in 1.1.0
Hey 😀
I am wondering if there is any option to provide additional node flags like
--loader
to this plugin? In my case, I usually use something likenode --loader esmock [...]
to start my tests. Any hint is highly appreciated!Cheers 🚀 Robert