Skip to content

--env flag does not work with 'ng test' #1718

@steelheaddigital

Description

@steelheaddigital

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    OSX El Capitan 10.11.6
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    angular-cli: 1.0.0-beta.10
    node: 6.3.1
    os: darwin x64
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    a.) Add an environment.test.ts file to the project
    b.) Change a value inside the file.
    c.) run ng build --env=test
    d.) look at the environment.js file in dist/
    e.) notice that it has the value from the environment.test.ts file
    f.) run ng test --env=test
    g.) look in the dist folder again and notice that the values from the dev environment file are there instead of the test environment file.
  4. The log given by the failure. Normally this include a stack trace and some
    more information.
    N/A
  5. Mention any other details that might be useful.

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionfeatureIssue that requests a new featurehelp wantedseverity2: inconvenient

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions