I'm using the angular cli in my project, and when generating a component, it automatically creates a .component.spec.ts file
Can anyone tell me what this .spec file is for? Do I really need it or can I exclude it?
I'm using the angular cli in my project, and when generating a component, it automatically creates a .component.spec.ts file
Can anyone tell me what this .spec file is for? Do I really need it or can I exclude it?
The spec
files are unit tests for the source files.
The convention for Angular 2 applications is to have a .spec.ts
file for each .ts
file.
Documentation: link