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.

latest jasmine/marbles module does NOT compile

See original GitHub issue

Trying to run Karma tests fails to build against latest jasmine/marbles/rxjs combos

IE. I do this: ng test

against these package.json settings (included only pertinent items):

  "dependencies": {
    "rxjs": "5.5.8",
    "zone.js": "0.8.24"
  },
  "devDependencies": {
    "jasmine-core": "3.1.0",
    "jasmine-marbles": "0.3.1",
    "jasmine-spec-reporter": "4.2.1",
    "karma": "2.0.0",
    "karma-chrome-launcher": "2.2.0",
    "karma-cli": "1.0.1",
    "karma-coverage-istanbul-reporter": "1.4.2",
    "karma-jasmine": "1.1.1",
    "karma-jasmine-html-reporter": "1.0.0",
    "typescript": "2.8.1",
  }

This results in the following errors:

> ng test

 10% building modules 1/1 modules 0 active03 04 2018 15:21:45.014:WARN [karma]: No captured browser, open http://localhost:9876/
03 04 2018 15:21:45.020:INFO [karma]: Front-end scripts not present. Compiling...
[./src/polyfills.ts] ./src/polyfills.ts 0 bytes {polyfills} [built]
   [0] multi ./src/polyfills.ts 28 bytes {polyfills} [built]
[./src/test.ts] ./src/test.ts 0 bytes {main} [built]

ERROR in node_modules/jasmine-marbles/src/scheduler.d.ts(1,31): error TS2307: Cannot find module 'rxjs/testing'.
node_modules/jasmine-marbles/src/test-observables.d.ts(2,33): error TS2307: Cannot find module 'rxjs/internal/testing/SubscriptionLog'.

I am at a loss, since the same packages (on pre-3.x versions) with ng build are working fine (of course, the CLI uses webpack). This does NOT happen when I use

    "jasmine-core": "2.99.1",
    "jasmine-marbles": "0.2.0",

Losing my mind trying to understand what is up…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ctaeppercommented, Apr 6, 2018

look at that, I learned something new today. if the major version is 0, the minor version bump is considered a breaking change

0reactions
brandonrobertscommented, Apr 6, 2018

https://semver.npmjs.com/ says otherwise if you search for jasmine-marbles and enter ^0.2.1 for the range

Read more comments on GitHub >

github_iconTop Results From Across the Web

latest jasmine/marbles module does NOT compile #20 - GitHub
Trying to run Karma tests fails to build against latest jasmine/marbles/rxjs combos IE. I do this: ng test against these package.json ...
Read more >
Cannot find module 'rxjs/testing' from 'jasmine-marbles.umd.js'
In my case using jasmine-marbles@v0.2.0 instead of the @latest resolve it, since it doesn't seem to require the peer dependency of the beta ......
Read more >
Component testing scenarios - Angular
This syntax tells the Angular compiler to read the external files during component compilation. That's not a problem when you run the CLI...
Read more >
How I Write Marble Tests For RxJS Observables In Angular
You can combine your jasmine-marble tests with the new RxJS 6 features in the same project I demonstrate in my example project.
Read more >
Testing - Angular
The tests run again, the browser refreshes, and the new test results appear. ... Angular can't know at compile time what kind of...
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