Skip to content

[6.0.0-rc.4] ng test --prod fails #10319

@bananer

Description

@bananer

Versions

Angular CLI: 6.0.0-rc.4
Node: 8.11.1
OS: linux x64
Angular: 6.0.0-rc.4
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.5.6
@angular-devkit/build-angular     0.5.6
@angular-devkit/build-optimizer   0.5.6
@angular-devkit/core              0.5.6
@angular-devkit/schematics        0.5.6
@ngtools/json-schema              1.1.0
@ngtools/webpack                  6.0.0-rc.4
@schematics/angular               0.5.6
@schematics/update                0.5.6
rxjs                              6.0.0-turbo-rc.4
typescript                        2.7.2
webpack                           4.5.0

Repro steps

$ ng new testproject
$ cd testproject
$ ng test --prod

Observed behavior

Configuration 'production' could not be found in project 'testproject'.
Error: Configuration 'production' could not be found in project 'testproject'.
    at Architect.getBuilderConfiguration (/tmp/bla/testproject/node_modules/@angular-devkit/architect/src/architect.js:102:23)
    at runSingleTarget (/tmp/bla/testproject/node_modules/@angular/cli/models/architect-command.js:136:89)
    at MergeMapSubscriber.rxjs_2.from.pipe.operators_1.concatMap.project (/tmp/bla/testproject/node_modules/@angular/cli/models/architect-command.js:141:131)
    at MergeMapSubscriber._tryNext (/tmp/bla/testproject/node_modules/rxjs/internal/operators/mergeMap.js:122:27)
    at MergeMapSubscriber._next (/tmp/bla/testproject/node_modules/rxjs/internal/operators/mergeMap.js:112:18)
    at MergeMapSubscriber.Subscriber.next (/tmp/bla/testproject/node_modules/rxjs/internal/Subscriber.js:103:18)
    at Observable._subscribe (/tmp/bla/testproject/node_modules/rxjs/internal/util/subscribeToArray.js:9:20)
    at Observable._trySubscribe (/tmp/bla/testproject/node_modules/rxjs/internal/Observable.js:177:25)
    at Observable.subscribe (/tmp/bla/testproject/node_modules/rxjs/internal/Observable.js:162:93)
    at MergeMapOperator.call (/tmp/bla/testproject/node_modules/rxjs/internal/operators/mergeMap.js:87:23)

Desired behavior

Builds app and runs test, like it does without --prod

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