ionic-team / ionic-team/ionic-cli

Configure skip-test globally on angular.json is not working for service

Đang mở
#4,572 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage
Ngôn ngữ chính
TypeScript
Star
2k
Fork
682
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,

_CLI_

`ionic g service core/services/utils/storage `

_angular.json_

```
"@ionic/angular-toolkit:service": {
"skip-test": true
}
```

and tried this too:

```
"@ionic/angular-toolkit:service": {
"spec": false
}
```
But still above CLI generates `spec` file.

If I use this CLI then it works without `spec` file

`ionic g service core/services/utils/toast --skipTests=true`

So how to configure this feature globally using `angular.json`?

Ionic:

Ionic CLI : 6.9.2 (C:\Users\Sampath\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 5.3.3
@angular-devkit/build-angular : 0.1001.2
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.1.2
@ionic/angular-toolkit : 2.3.3

Capacitor:

Capacitor CLI : 2.4.1
@capacitor/core : 2.4.1

Utility:

cordova-res : 0.14.0
native-run (update available: 0.3.0) : 0.2.5

System:

NodeJS : v12.13.1 (C:\Program Files\nodejs\node.exe)
npm : 6.12.1
OS : Windows 10

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.