Skip to content

ng g config to generate test.ts #26495

Open
@cexbrayat

Description

@cexbrayat

Command

test

Description

It is possible to generate the karma.conf.js file but not to generate the test.ts file.

This file can be really useful to add things like custom matchers.

Describe the solution you'd like

Something like ng g config test that would re-add the test.ts file to the project, allowing to customize it.

I have a WIP PR to add this if the team is OK.

Describe alternatives you've considered

You can manually add the file if you know how it should look.

Or maybe we could have an extra field in the karma builder like 'setup', to just specify a file that would add the custom matchers.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions