Closed puglyfe closed 3 months ago
👋 another one from me. async jasmine SpyStrategy methods (i.e. rejectWith and resolveTo) trigger Unsupported Jasmine functionality warnings (source). These have jest equivalents of mockResolvedValue(value) and mockRejectedValue(value).
SpyStrategy
rejectWith
resolveTo
Unsupported Jasmine functionality
Example input:
jasmine.createSpy().and.resolveTo('some value');
Actual output:
// Logs `Unsupported Jasmine functionality "jasmine.createSpy().and.resolveTo".` during transform jest.fn().and.resolveTo('some value'); // not valid
Expected output:
jest.fn().mockResolvedValue('some value');
I will have a PR with a fix shortly.
👋 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.