Skip to content

preserve-symlinks option not supported with ng test #7081

Closed

Description

@Schibum

Bug Report or Feature Request (mark with an x)

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

Versions.

@angular/cli: 1.3.0-beta.1
node: 8.2.0
os: darwin x64

Repro steps.

ng build/serve command do support --preserve-symlinks option, while ng test does not:

$ng build --help | grep sym
  --preserve-symlinks (Boolean) (Default: true) Do not use the real path when resolving modules. 
$ng test --help | grep sym
# empty
$ ng test --preserve-symlinks
The option '--preserve-symlinks' is not registered with the test command. Run `ng test --help` for a list of supported options.

Desired functionality.

I think it'd make sense to support symlinked modules in the test command too.
The test command does not include common build options, while serve does:
https://github.com/angular/angular-cli/blob/master/packages/@angular/cli/commands/serve.ts#L33
Not sure if that's intentional for some reason or by mistake.

Activity

  1. filipesilva commented on Jul 31, 2017

    @filipesilva
    Contributor

    Yeah I agree it should be available there. ng test and ng build/serve/e2e do not share options for historical reasons that are now outdated. So we should make those shared.

  2. self-assigned this
    on Jul 31, 2017
  3. added
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    featureLabel used to distinguish feature request from other issues
    on Jul 31, 2017
  4. added a commit that references this issue on Sep 5, 2017
    ca7921d
  5. zackarychapple commented on Sep 11, 2017

    @zackarychapple
    Contributor

    Awesome @filipesilva, will this be in 1.4.2?

  6. added a commit that references this issue on Sep 13, 2017
    b0fd35e
  7. added a commit that references this issue on Apr 23, 2018
    7c5c9cb
  8. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  9. locked and limited conversation to collaborators on Sep 7, 2019
  10. added a commit that references this issue on May 29, 2026
    8a147ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureLabel used to distinguish feature request from other issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions