Skip to content

Unit tests process crashes #3074

Closed

Description

@dahaupt

Bug, feature request, or proposal:

Bug

What is the expected behavior?

The unit tests should work on master branch.

What is the current behavior?

The process fails in step :build:components:spec with:

node_modules/@types/jasmine/index.d.ts(39,38): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
node_modules/@types/jasmine/index.d.ts(39,46): error TS2304: Cannot find name 'keyof'.
node_modules/@types/jasmine/index.d.ts(39,52): error TS1005: '=' expected.

What are the steps to reproduce?

Run gulp test on the master branch.

Which versions of Angular, Material, OS, browsers are affected?

Latest Version of Material, Windows 10, Angular 2.4.7

Is there anything else we should know?

I'm no expert in unit tests, but simply starting them on a new cloned repository should work (e2e tests are working fine). It could be possible too, that this is just a problem on my system, because otherwise someone would have already noticed this.

Activity

  1. modernfidelity commented on Feb 13, 2017

    @modernfidelity

    I'll also getting this via -> gulp build:release at the "Starting ':build:components:ngc'" step

  2. kara commented on Feb 13, 2017

    @kara
    Contributor

    Running tests works for me on master. What version of node are you running? I'm running 6.2.2.

  3. added
    cannot reproduce
    on Feb 13, 2017
  4. dahaupt commented on Feb 13, 2017

    @dahaupt
    Author

    @kara I'm running version v6.9.5 of node (latest).

  5. trshafer commented on Feb 13, 2017

    @trshafer
    Contributor

    I have the same issue. I'm running 6.9.4, as that is what travis is running on: https://github.com/angular/material2/blob/master/.travis.yml#L5

  6. kara commented on Feb 13, 2017

    @kara
    Contributor

    How about Typescript versions? I'm doing a fresh npm install now from scratch to see if that breaks anything..

  7. dahaupt commented on Feb 13, 2017

    @dahaupt
    Author

    My global Typescript version is 2.1.5, in the project (master) it is 2.0.10. I'm not sure which one is used for tests.

  8. trshafer commented on Feb 13, 2017

    @trshafer
    Contributor

    Did a git bisect of "npm install && npm test". This is the commit where it changed from a warning to an error 4a4261e.

  9. removed
    cannot reproduce
    on Feb 13, 2017
  10. kara commented on Feb 13, 2017

    @kara
    Contributor

    Okay, just blew away my node modules and started from scratch. Also getting the error now.

  11. added
    P2
    on Feb 13, 2017
  12. modernfidelity commented on Feb 13, 2017

    @modernfidelity
  13. owlstack commented on Feb 16, 2017

    @owlstack

    I'm having the same issue. Is this resolved? should I wait for latest release?

  14. trshafer commented on Feb 16, 2017

    @trshafer
    Contributor

    @owlstack, are you still getting the issue with #3080 merged in? Did you remove your node_modules folder and re install?

  15. Slashmsu commented on Feb 18, 2017

    @Slashmsu

    I have the same error, I removed node_modules and reinstalled it, but I still have this error

  16. jppellerin commented on Mar 1, 2017

    @jppellerin

    I had this issue and I can confirm that going back down to 2.5.38 resolved it.

  17. angular-automatic-lock-bot commented on Sep 5, 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.

  18. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions