Whenever I use the Github Actions Typescript template to create a new repo and then check it out locally, I face a recurring issue: While I can work on the source code in VS Code without any problems and follow the steps mentioned in the template's readme for installation, build, and running tests, I encounter difficulties when trying to write tests for my action.
The error messages Cannot find module [someModule]
or Cannot find name [someName]
keep popping up. This is how it appears initially after being created from the template (lots of red): https://i.stack.imgur.com/WTACD.png
It seems that 'npm test' runs smoothly, indicating that the problem lies within VS Code...I assume? Despite following suggestions provided by VS Code and conducting extensive research online, all the information pertains to running tests using Github Actions, rather than resolving issues with testing the action itself.
As someone who is not well-versed in the typescript and npm ecosystem, this may seem like a novice query. However, I would greatly appreciate it if someone could offer guidance towards finding a solution.