Adapt jasmine tests for jasmine-core@3
See original GitHub issuenpm i jasmine-core@3.3.0 karma.jasmine@2.0.1
npm run test-jasmine -- --nowatch
make numerous tests fail, spits out deprecation warnings:
and doesn’t get along with our negateIf
custom matcher
More info about jasmine@3:
https://github.com/jasmine/jasmine/blob/master/release_notes/3.0.md
More info about karma-jasmine@2:
https://github.com/karma-runner/karma-jasmine/blob/master/CHANGELOG.md#200-2018-11-15
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How to use the jasmine-core.core function in jasmine-core
To help you get started, we've selected a few jasmine-core examples, based on popular ways it is used in public projects. ; */...
Read more >Getting Started - Jasmine Documentation
Set jasmine as your test script in your package.json "scripts": { "test": "jasmine" }. Run your tests npm test. More Information ...
Read more >jasmine parameterized unit test - Stack Overflow
I have tested it with the Jest test framework, but it should work with Jasmine as well. Share.
Read more >Angular Unit testing with Jasmine | Web Age Solutions
Angular Unit testing with Jasmine. October 22, 2021 by Karandeep Kaur. Category: Angular. Author: David Chung. This tutorial is adapted from the Web...
Read more >Unit Testing with Jasmine: An Introduction | by Paige Finkelstein
In this post I'll discuss getting started with unit testing with Jasmine, including how to set up tests for an Angular 2 application....
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
jasmine-core@3.3.0
addedexpect(...).withContext('extra message').toEqual(...)
to (finally) maketoEqual(...)
log extra info in failure messages.https://github.com/jasmine/jasmine/blob/master/release_notes/3.3.0.md
🎉
Things are looking up!
By setting
random: false
thus making our test running in order (like they are currently) makenpm run test-jasmine
run smooth ⛵https://github.com/plotly/plotly.js/compare/bump-jasmine
Now, the main “blocker” is
negateIf
. We either:jasmine-core@v3
is ok with (see src for inspiration), ornegateIf
.As adding stuff to the
jasmine.Expectation
prototype isn’t recommended in jasmine docs, I’ll vote for the 🔪 . Does anyone oppose?