NodeJS-EZTest is a VS Code extension that simplifies the testing of Node.js projects. With just the click of a button, you can test your Node.js project and track its progress in a console.
Features
Test your Node.js project with just one button click.
Automatic compilation and execution of TypeScript files.
Support for executing JavaScript files.
Output to a dedicated console.
Convenient starting and stopping of code.
Compiling TypeScript files without executing the code.
Error document when a compilation fails.
For the button to be displayed, there must be the folder node_modules and TypeScript/JavaScript files in the current workspace.
Usage
Start testing:
Open your Node.js project in VS Code.
A "start Testing" button is displayed in the status bar.
Click on the button to open a new console and execute the code
The process is displayed in the console.
Click on the button again to stop the code and close the terminal.
Press the "restart Testing" button to reopen and restart the terminal.
Compile Typescript files:
Open your Node.js project with TypeScript files in VS Code.
A "compile TS" button is displayed in the status bar.
Click on the button to compile the TypeScript files to JavaScript files.
Wait a bit and stare at the spinning loading symbol.
When the symbol of the button has changed, the compilation failed or finished.
If the compilation fails, a document will be displayed with error points.
- The "Compile TS" button is only displayed if TypeScript files and the `tsconfig.json` file are present, and no test is currently running.