nodejs-testing
nodejs-testing copied to clipboard
Test coverage, typescript and tsx
Hey, I'm trying the new code coverage feature, first of all, thank you for the work.
It doesn't work for me, I don't know if I'm missing some configuration. Currently using this configuration:
{
"nodejs-testing.extensions": [
{
"extensions": ["mjs", "cjs", "js"],
"parameters": []
},
{
"extensions": ["mts", "cts", "ts"],
"parameters": ["--import", "tsx"]
}
]
}
Everything works well except test coverage, I only have this that appears:
And everthing shows up as 100%:
So it looks like something does not work. When I run the following command by hand:
node --test --enable-source-maps --experimental-test-coverage --import tsx $(find src -name '*.test.ts')
I obtain:
So the node test runner seems to recognise my files.
Are you aware of such a thing? Can I help you with identifying the root cause?
Thank you for your time and have a nice day