However, I’m having quite a bit of trouble running these tests inside VS Code with the official Jest extension, and I’m struggling to figure out how to configure it. I can still run the tests from the CLI just fine.
Is there a way I can get it to discover all of the tests from all subfolders if I’m using folder structure?
JS track is based on the idea, that each exercise is a project on its own. So while you can easily point VSCode to the parent folder to have all of them in one workspace, there still is no project setup supporting that.
To “discover all tests of all exercises” a Jest installation and configuration in the workspace folder should be enough project setup. I haven’t done that on my own, but you may start by copying packages.json from an exercise and adjust that.
Thanks @SleeplessByte and @mk-mxp! I’ll definitely keep that in mind, will probably have to rethink my folder structure. A good learning opportunity for sure!