Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Angular spec generatorNew to Visual Studio Code? Get it now.
Angular spec generator

Angular spec generator

Thorsten Rintelen

|
11,472 installs
| (5) | Free
Generate angular jest spec files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Angular spec (jest / jasmine) file generator

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
Examples

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

Release Notes

See changelog

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