nodejs-testing icon indicating copy to clipboard operation
nodejs-testing copied to clipboard

Tests are not nested nor reported on correctly

Open alexanderisacson opened this issue 8 months ago • 3 comments

I have a test file with multiple describe functions. They are all siblings, i.e. Start XTDB, Set Data Source Items, Import Records and Valid Times are all on the same level but the test explorer picks them up as nested.

Image

This means I can't run them from vs-code nor see their results.

If I run Query Tests runs the test suit fine but clicking on a erroneously nested describe suite like Import Records just leaves the runner waiting.

Running the test from the command line node --env-file=.env_test --import tsx --test **/*.test.ts runs all test suites fine.

alexanderisacson avatar May 06 '25 07:05 alexanderisacson

Could seems related to #51? But I don't have any as const in my tests.

I'm running

Identifier: connor4312.nodejs-testing
Version: 1.7.0
Last Updated: 2025-04-03, 08:04:52

alexanderisacson avatar May 06 '25 07:05 alexanderisacson

Probably the same root cause. I reverted the fix for that because the built-in TS language service was very flakey when I tried to (mis)use it for this scenario.

connor4312 avatar May 06 '25 15:05 connor4312

@connor4312 what can I do to aid in the resolution of this issue?

alexanderisacson avatar May 07 '25 09:05 alexanderisacson