Skip to content

Allow switching the suffix for test files to .test.ts instead of .spec.ts #143

@romandecker

Description

@romandecker

I'm submitting a...


[ ] Regression 
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

Currently, the all the schematics use .spec.{ts,js} as a suffix for the test files.

Expected behavior

There is a configuration option (probably threaded through the cli from .nestcli.json to switch the test suffix from .spec.{ts,js} to .test.{ts,js}.

What is the motivation / use case for changing the behavior?

It's pretty common practice to give test files the suffix .test.{ts,js} (in fact, the tests for this very project itself follow that pattern). Could we add an option to make this configurable?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions