replied toย some time ago:
I tried to do the same as Rust in TypeScript, I made a test runner that ran the
test_X function for the file. It worked ok, but it became too messy so I decided separate files with the same filename + .spec is good as well. I definitely not want to hunt the test files in different directories/projects.