Skip to content

Native Jest support as alternative testing solution #19424

@markusheinemann

Description

@markusheinemann

🚀 feature request

Relevant Package

This feature request is for @angular/common

Description

My suggestion is to support jest as default testing framework. Currently it's possible to use jest but it requires additional setup and an external dependency called jest-preset-angular to get not overwhelmed with configuration stuff. In my eyes jest brings some serious advantages over Karma.

  • Parallel test execution
  • Rerun only affected tests
  • Headless by default
  • Well documented

Describe the solution you'd like

Jest support without additional configuration setup. A possible solution could be a parameter on the ng new command which let the user decide the testing framework.

Describe alternatives you've considered

Setup custom testing configuration for each project and use the external package jest-preset-angular

I've searched for similar issues here on GitHub but found nothing about this topic. Maybe we can discuss here if such a feature is useful or not. Is there anything I'm missing why there is no default support yet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions