OPI Blog
Learn from experts in their fields

Browsing Tags: Jest

May 26, 2021
Mock Intl and Date globals in Jest
In Javascript land, mocking the browser global objects can be a bit of a pain for tests. Searching StackOverflow gives plenty of complicated answers. Some suggesting using 3rd party mock libraries. Some that overwrite the ...