Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
OS X El Capitan
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.17
node: 6.3.0
os: darwin x64
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
Create a angular cli project, create a compilation error in a spec file that doesn't fail at runtime (e.g. omit constructor parameter) and run ng test
The log given by the failure.
Normally this include a stack trace and some more information.
For example, this output of a test run of ng test:
ERROR in [default] /Users/jr/dev/console/console/src/app/context/context.service.spec.ts:17:12
Supplied parameters do not match any signature of call target.
ERROR in [default] /Users/jr/dev/console/console/src/app/context/location.spec.ts:8:11
Supplied parameters do not match any signature of call target.
19 10 2016 14:05:24.377:INFO [karma]: Karma v1.2.0 server started at http://localhost:9876/
19 10 2016 14:05:24.380:INFO [launcher]: Launching browser Chrome with unlimited concurrency
19 10 2016 14:05:24.511:INFO [launcher]: Starting browser Chrome
19 10 2016 14:05:25.882:INFO [Chrome 53.0.2785 (Mac OS X 10.11.6)]: Connected on socket /#pLo6aNiQB7OJVlxvAAAA with id 31332214
Chrome 53.0.2785 (Mac OS X 10.11.6): Executed 10 of 10 SUCCESS (0.77 secs / 0.754 secs)
iDevBook01:console jr$ $?
-bash: 0: command not found
Mention any other details that might be useful.
It would be useful if angular-cli captured the error code when compiling typescript code and failed early. ng build doesn't build tests, so it's not useful either.
Thanks! We'll be in touch soon.
OS?
Versions.
The log given by the failure.
For example, this output of a test run of
ng test:Mention any other details that might be useful.
It would be useful if angular-cli captured the error code when compiling typescript code and failed early.
ng builddoesn't build tests, so it's not useful either.