Testing Strategy for Single Functions
What's the best way to test a single function from a service?
I have a
I want to test
And possibly also a way to "mock"
Best strategy here?
I have a
File service:makeNative dependes on globalThis.File:I want to test
allowOnlyImage and maxFileSize separately, without the need of providing all their implementations every time:And possibly also a way to "mock"
globalThis.File.Best strategy here?
