Skip to content

[schematics/angular] No need to generate a module spec #11277

Closed
@cexbrayat

Description

@cexbrayat

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Area

- [ ] devkit
- [x] schematics

Versions

Repro steps

When generating a module, a spec file is created.
This file has no real interest and was not generated before CLI v6 if I'm not mistaken.
It's possible to skip the generation with the spec option,
but as the test is not really useful, the test should never be created and the option removed?

module-spec git:master ❯ ng g m shared
CREATE src/app/shared/shared.module.spec.ts (275 bytes)
CREATE src/app/shared/shared.module.ts (190 bytes)

Desired functionality

It should not generate a spec file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions