connor4312 / nodejs-testing

VS Code integration for node:test native tests
MIT License
43 stars 6 forks source link

Test are not being recognized #11

Closed raigorx closed 2 months ago

raigorx commented 1 year ago

I have main.test.js in my root directory, and is not being show.

image

Any way to get logs or a kind of debug info?

connor4312 commented 12 months ago

Can you share a .zip of your project so I can try this locally?

raigorx commented 12 months ago

https://github.com/raigorx/Simple-Text-Editor

Maybe it's ESM the culprit

koistya commented 11 months ago

I'm also using ESM, the list of tests shows up OK in the test eplorer, but when I try to run them, it fails with:

worker1> starting /Users/User/Projects/example/example.test.js
worker1> 1..0 # no tests found
uwinkelvos commented 10 months ago

Although the tests say it should not be a problem, there seems to be a issue with recognizing import test from 'node:test'. see example above and also here.

connor4312 commented 2 months ago

In recent versions we use a more reliable way to report+read test results, please let me know if you continue to experience issues.