Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Angular generate by skipping test files

// for versions < 8
ng generate component path/filename --no-spec
// Or
ng generate component path/filename --spec false

// for versions >= 8
ng generate component path/filename --skipTests=true
// Note: path is relative to src/app folder

// for versions >= 11
ng g c path/filename --skip-tests
ng g c path/filename --skip-tests=true
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Angular #generate #skipping #test #files
ADD COMMENT
Topic
Name
8+1 =