I have a setup where I offload some common strategies for testing in a helper file,
I run tests the same as if they were using the regular describe/it pattern:
jest x-var.test.ts
I assume neotest-jest, is looking for the describe() and test() methods to register the tests.
Is there a configuration I'm missing or an improvement I can implement to the project that would help neotest-jest infer the tests?
as they function exactly the same but just a bit abstracted for convenience.
Edit: I've been experimenting with tricking neotest-jest into thinking it's in another describe/test block. But neotest throws errors when nesting describe inside tests.
Note: I'm a bit new to using Typescript and jest in general. So if it simply isn't possible, Could a solution be to synthetically define tests through annotations or comments?
I'd hate to miss out on re-running tests and navigating through the summery buffer. It's amazing.
I have a setup where I offload some common strategies for testing in a helper file, I run tests the same as if they were using the regular describe/it pattern:
jest x-var.test.ts
I assume neotest-jest, is looking for the describe() and test() methods to register the tests. Is there a configuration I'm missing or an improvement I can implement to the project that would help neotest-jest infer the tests? as they function exactly the same but just a bit abstracted for convenience.
helpers/helper.ts:
And a Test file x-var.test.ts:
Edit: I've been experimenting with tricking neotest-jest into thinking it's in another describe/test block. But neotest throws errors when nesting describe inside tests.
Note: I'm a bit new to using Typescript and jest in general. So if it simply isn't possible, Could a solution be to synthetically define tests through annotations or comments? I'd hate to miss out on re-running tests and navigating through the summery buffer. It's amazing.