Mocking layers when testing Effect Atom
Hi, How would you approach testing Effect Atoms that are dependant on Effect services?
For example here is the code from the https://github.com/tim-smart/effect-atom repo:
What you I need to do if I want to test a component that uses the
For example here is the code from the https://github.com/tim-smart/effect-atom repo:
What you I need to do if I want to test a component that uses the
usersAtom? How can I replace the runtime Users.Default layer with a mocked layer on the runtimeAtom in my test without changing the tested component code?GitHub
Contribute to tim-smart/effect-atom development by creating an account on GitHub.
