Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Angular JesterNew to Visual Studio Code? Get it now.
Angular Jester

Angular Jester

Michael Fontecchio

|
549 installs
| (3) | Free
Generate Jest spec files for Angular projects.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Angular Jester

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

Features

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

Requirements

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

Known Issues

Some methods may not be found/included.

Release Notes

0.0.12

Fixed templating issue for methods.

0.0.10

Angular 16+ updates. Few enhancements. Check out CHANGELOG.md for more info.

0.0.5

First publication of extension.

0.0.2

Initial release of Angular Jester

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft