You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Logs `Unsupported Jasmine functionality "jasmine.createSpy().and.resolveTo".` during transformjest.fn().and.resolveTo('some value');// not valid
Expected output:
jest.fn().mockResolvedValue('some value');
I will have a PR with a fix shortly.
The text was updated successfully, but these errors were encountered:
puglyfe
changed the title
jasmine-globals: support for async SpyStrategy methodsjasmine-globals: async SpyStrategy methods are not supported
May 14, 2024
馃憢 another one from me. async jasmine
SpyStrategy
methods (i.e.rejectWith
andresolveTo
) triggerUnsupported Jasmine functionality
warnings (source). These have jest equivalents of mockResolvedValue(value) and mockRejectedValue(value).Example input:
Actual output:
Expected output:
I will have a PR with a fix shortly.
The text was updated successfully, but these errors were encountered: