generator-angular-fullstack icon indicating copy to clipboard operation
generator-angular-fullstack copied to clipboard

npm test error.. help please

Open dantory opened this issue 8 years ago • 1 comments

  • [x] I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.2.0
Node 6.10.2
npm 3.10.10
Operating System Ubuntu 16.04
etc etc
Item Answer
Transpiler TypeScript
Markup HTML
CSS SCSS
Router ui-router
Client Tests Mocha
DB MongoDB
Auth Y
etc etc
~/source/angular/chazblog on  master! ⌚ 19:47:31
$ gulp test:client
[19:47:33] Requiring external module babel-register
[19:47:35] Using gulpfile ~/source/angular/chazblog/gulpfile.babel.js
[19:47:35] Starting 'test:client'...
16 05 2017 19:47:38.992:INFO [karma]: Karma v0.13.22 server started at http://localhost:4444/
16 05 2017 19:47:38.996:INFO [launcher]: Starting browser PhantomJS
[default] Checking started in a separate process...
16 05 2017 19:47:39.238:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket xfei7Q8A_GDGyqCFAAAA with id 75785966

  Component: MainComponent
    ✓ should attach a list of things to the controller

  Controller: OauthButtonsController
    ✓ should attach loginOauth

  Directive: oauthButtons
    ✓ should contain anchor buttons
    ✓ should evaluate and bind the classes attribute to scope.classes
    ✓ should bind scope.classes to class names on the anchor buttons

PhantomJS 2.1.1 (Linux 0.0.0): Executed 5 of 5 SUCCESS (0.062 secs / 0.028 secs)
TOTAL: 5 SUCCESS

[19:47:39] Finished 'test:client' after 3.69 s

~/source/angular/chazblog on  master! ⌚ 19:47:39
$ [default] /home/chazwize/source/angular/chazblog/client/app/main/main.component.spec.ts:8:22 
    Property 'mock' does not exist on type 'IAngularStatic'.
[default] /home/chazwize/source/angular/chazblog/client/app/main/main.component.spec.ts:9:22 
    Property 'mock' does not exist on type 'IAngularStatic'.
[default] /home/chazwize/source/angular/chazblog/client/app/main/main.component.spec.ts:9:69 
    Property 'mock' does not exist on type 'IAngularStatic'.
[default] /home/chazwize/source/angular/chazblog/client/app/main/main.component.spec.ts:17:14 
    Cannot find name 'inject'.
[default] /home/chazwize/source/angular/chazblog/client/app/main/main.component.spec.ts:40:5 
    Cannot find name 'expect'.
[default] /home/chazwize/source/angular/chazblog/client/components/oauth-buttons/oauth-buttons.controller.spec.ts:14:22 
    Property 'mock' does not exist on type 'IAngularStatic'.
[default] /home/chazwize/source/angular/chazblog/client/components/oauth-buttons/oauth-buttons.controller.spec.ts:17:14 
    Cannot find name 'inject'.
[default] /home/chazwize/source/angular/chazblog/client/components/oauth-buttons/oauth-buttons.controller.spec.ts:28:5 
    Cannot find name 'expect'.
[default] /home/chazwize/source/angular/chazblog/client/components/oauth-buttons/oauth-buttons.directive.spec.ts:8:22 
    Property 'mock' does not exist on type 'IAngularStatic'.
[default] /home/chazwize/source/angular/chazblog/client/components/oauth-buttons/oauth-buttons.directive.spec.ts:14:5 
    Cannot find name 'inject'.
[default] /home/chazwize/source/angular/chazblog/client/components/oauth-buttons/oauth-buttons.directive.spec.ts:22:14 
    Cannot find name 'inject'.
[default] /home/chazwize/source/angular/chazblog/client/components/oauth-buttons/oauth-buttons.directive.spec.ts:28:5 
    Cannot find name 'expect'.
[default] /home/chazwize/source/angular/chazblog/client/components/oauth-buttons/oauth-buttons.directive.spec.ts:34:5 
    Cannot find name 'expect'.
[default] /home/chazwize/source/angular/chazblog/client/components/oauth-buttons/oauth-buttons.directive.spec.ts:42:5 
    Cannot find name 'expect'.
[default] /home/chazwize/source/angular/chazblog/client/components/oauth-buttons/oauth-buttons.directive.spec.ts:47:5 
    Cannot find name 'expect'.
[default] /home/chazwize/source/angular/chazblog/client/components/socket/socket.mock.ts:2:7 
    Cannot redeclare block-scoped variable 'angular'.
[default] /home/chazwize/source/angular/chazblog/client/components/ui-router/ui-router.mock.ts:2:7 
    Cannot redeclare block-scoped variable 'angular'.
[default] /home/chazwize/source/angular/chazblog/typings/browser/ambient/angular-resource/index.d.ts:17:19 
    Cannot redeclare block-scoped variable 'angular'.
[default] /home/chazwize/source/angular/chazblog/typings/browser/ambient/angular-resource/index.d.ts:184:19 
    Cannot redeclare block-scoped variable 'angular'.
[default] /home/chazwize/source/angular/chazblog/typings/browser/ambient/angular/index.d.ts:10:13 
    Cannot redeclare block-scoped variable 'angular'.
[default] /home/chazwize/source/angular/chazblog/typings/browser/ambient/angular/index.d.ts:27:19 
    Cannot redeclare block-scoped variable 'angular'.

Few things have been modified since the project was created.

help.. plz

dantory avatar May 16 '17 10:05 dantory

From the shell output you posted, it looks like gulp test:client ran fine. Where did all the typescript errors on the second input come from? Which shell are you using?

Awk34 avatar May 17 '17 17:05 Awk34