question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unit tests process crashes

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
modernfidelitycommented, Feb 13, 2017

Solved this by reducing the @types/jasmine to 2.5.38

Sent from my iPhone

On 13 Feb 2017, at 17:50, Kara notifications@github.com wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

1reaction
karacommented, Feb 13, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does Unit-Tested Code Crash? A Case Study of Eclipse
Conclusion:Unit testing on its own may not be a sufficient method for preventing program failures. CCS Concepts: • Software and its engineering →...
Read more >
Visual Studio 2019 Live Unit Testing Crashes - Stack Overflow
I'm trying to use Live Unit Testing with my nUnit tests, but it crashes every time I start it. It crashes whether I...
Read more >
Visual Studio 2019 Crashes When Trying To Run Unit Tests
3, building my solution and trying to run unit tests VS 2019 crashes. Tests work fine in VS 2017. I tried running a...
Read more >
Does Unit-Tested Code Crash? A Case Study of Eclipse - arXiv
Conclusion: Unit testing on its own may not be a sufficient method ... Unit-testing, crash incident reports, code coverage, stack traces,.
Read more >
Crash at the end of python unit test run, test never finishing
I create a blank project with only one unit test. import unit test class MyTests(): def test_thing(): ... Ready to process crash requests...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found