This project is an extension for Visual Studio Code that streamlines the creation of unit tests for TypeScript files in Angular projects. With a keyboard shortcut or right-click, the extension checks if the `.spec.ts` test file already exists, and if not, it generates a new one with a ready-to-use i
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Prophecy is an extension for Visual Studio Code that simplifies the process of creating unit tests for your TypeScript code. With a simple right-click, you can automatically generate unit tests for .ts files in your workspace.
In the context menu, select the "Generate Unit Test with Prophecy" option.
The test will be generated in the same folder as the original file.
Example:
Original file: src/app/example.ts
Generated test: src/app/example.spec.ts
Step 3: Run the Tests
After generating the test, you can run the tests using the Test Runner in Visual Studio Code or another testing tool of your choice (e.g., Jest, Mocha).
Features
Automatic generation of unit tests for functions in TypeScript files.
Creation of test files in the same folder as the original file.
Support for typing and integration with popular testing tools.
Contributing
This is an open-source project. If you'd like to contribute, feel free to submit pull requests or report issues.