This is a rework/compilation of angular-spec-generator & jest-test-gen. The only difference is some exctra stubbing to include services and methods for each type.
Please support the originals:
- https://github.com/ThRintelen/angular-spec-generator by Thorsten Rintelen & Bonnie Hanks.
- https://github.com/egm0121/jest-test-gen by Giulio Dellorbo
Select an Angular *.ts file and use right click to generate the spec file.
Generate spec (jest / jasmine) files for Angular elements:
- component
- service
- guard
- resolver
- directive
- pipe
- interceptor
The extension works for files in an Angular project. The files should be named like this
- .component.ts
- .service.ts
- .guard.ts
- .resolver.ts
- .directive.ts
- .pipe.ts
- .interceptor.ts
Some methods may not be found/included.
Fixed templating issue for methods.
Angular 16+ updates. Few enhancements. Check out CHANGELOG.md for more info.
First publication of extension.
Initial release of Angular Jester