FoalTS / foal

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
https://foalts.org/
MIT License
1.9k stars 140 forks source link

Configure VSCode to be able to run unit and e2e tests with the debugger #386

Closed LoicPoullain closed 5 years ago

LoicPoullain commented 5 years ago

Issue

We already have a command (foal g vscode-config) to start a Foal application with the debugger. But using the debugger can also be very useful during unit or acceptance testing.

Solution

Extend the foal g vscode-config command so that we have the option to run the unit and e2e tests with the debugger in VSCode.

LoicPoullain commented 5 years ago

The PR has been merged and the new feature will come in the June release.

@pjo336 if you need it by then, you can copy and paste the contents of these files:

https://github.com/FoalTS/foal/blob/8ddad947f209b6ef40129442b61e8c40529937f7/packages/cli/src/generate/specs/vscode-config/launch.json

https://github.com/FoalTS/foal/blob/8ddad947f209b6ef40129442b61e8c40529937f7/packages/cli/src/generate/specs/vscode-config/tasks.json