You can skip creating the tests file by adding the "--skip-tests" falg to your command.
ng g c excel --skip-tests
CREATE src/app/excel/excel.component.html (20 bytes)
CREATE src/app/excel/excel.component.ts (272 bytes)
CREATE src/app/excel/excel.component.scss (0 bytes)
UPDATE src/app/app.module.ts (471 bytes)
For compariosn here is the normal command without the flag
ng g c excel
CREATE src/app/excel/excel.component.html (20 bytes)
CREATE src/app/excel/excel.component.spec.ts (592 bytes)
CREATE src/app/excel/excel.component.ts (272 bytes)
CREATE src/app/excel/excel.component.scss (0 bytes)
UPDATE src/app/app.module.ts (471 bytes)