Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ng g c skip test

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)
Comment

ng g c skip test

ng g c "yourComponentName" --skipTest
Comment

PREVIOUS NEXT
Code Example
Shell :: apt install postgres client 
Shell :: borrar una rama git 
Shell :: tar gz 
Shell :: linux unpack tar.gz file 
Shell :: apache config location 
Shell :: touch command not working in vs code 
Shell :: qts linux show process port 
Shell :: ubuntu install ngrok 
Shell :: increment variable in batch file 
Shell :: linux command to get number of lines in a file 
Shell :: code . zsh command not found wsl 
Shell :: git autocomplete branch name mac 
Shell :: awk get second column from command output 
Shell :: how to install .deb file in ubuntu from terminal 
Shell :: delete bash history 
Shell :: git bash upstream branch change 
Shell :: yarn test only one file 
Shell :: install snap on linux redhat 
Shell :: convert all files to lowercase using shell script 
Shell :: how to install ant in linux 
Shell :: install ruby ubuntu 20.04 
Shell :: hardhat smart contract compile command 
Shell :: remote: Invalid username or password. github mac 
Shell :: how to uninstall atom in ubuntu 
Shell :: wsl file to unix format 
Shell :: protoc command not found linux docker 
Shell :: add a linux header ubuntu 18.04 
Shell :: linux replace string in files recursively 
Shell :: sticky notes for ubuntu 20.04 
Shell :: update homestead after yaml change 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =