Completely removing tests from angular4

后端 未结 4 828
没有蜡笔的小新
没有蜡笔的小新 2021-02-07 00:39

I have built a really small application using angular4. I have the main app component, two subcomponents and one service. I feel like I dont need tests for such a small applicat

4条回答
  •  野性不改
    2021-02-07 01:00

    For angular-cli > 6

    you can configure your `angular.json on your root directory

    "projects": {
        "hello-world-app": {
            "schematics": {
                "@schematics/angular:component": {
                    "spec": false
                },
                "@schematics/angular:directive": {
                    "spec": false
                },
                "@schematics/angular:modules": {
                    "spec": false
                },
                "@schematics/angular:pipe": {
                    "spec": false
                },
                "@schematics/angular:service": {
                    "spec": false
                },
                "@schematics/angular:class": {
                    "spec": false
                }
            }
        }
    }

提交回复
热议问题