latest jasmine/marbles module does NOT compile
See original GitHub issueTrying 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:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
look at that, I learned something new today. if the major version is
0
, the minor version bump is considered a breaking changehttps://semver.npmjs.com/ says otherwise if you search for
jasmine-marbles
and enter^0.2.1
for the range