-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace legacy Jasmine dependency in tests with Jest builtin
The global `jasmine` API has been removed from Jest with the new test runner `jest-circus` introduced in v27–v29. While possible to import the legacy Jasmine package, it seemed to be more robust to upgrade to the `jest.fn` API which behaves exactly the same as `jasmine.createSpy`. The main difference is the `callThrough()` method in Jasmine spies. This behaviour is the default for `jest.fn()`, so the upgrade works as-is.
- Loading branch information
Showing
2 changed files
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters