1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular CLI create .spec files for already existing components

Discussão em 'Angular' iniciado por smnbbrv, Julho 14, 2025.

  1. smnbbrv

    smnbbrv Guest

    There is an option in .angular-cli.json to disable the automatic creating of *.spec files e.g. for components, see json schema.

    This is a really nice feature because personally (this is just my opinion) testing the components might not be the thing that really worth it in a fast growing project.

    However sometimes I would like to have an option to generate / recreate the corresponding *.spec file for an already existing component / service / pipe / whatsoever.

    Is that possible using some command line call?

    Created a feature request, let's see how it goes...

    Continue reading...

Compartilhe esta Página