bunshi icon indicating copy to clipboard operation
bunshi copied to clipboard

API for unit tests

Open mrjackdavis opened this issue 3 years ago • 0 comments

Hey!

(Firstly, this library is bloody amazing. IMO it should be first class for jotai.)

I have complicated molecules that I'd like to unit test. I'd appreciate some simple react-less API for doing so.

I need the equivalent of useMolecule to get the output of a molecule for a given scope. I noticed createStore used in store.test.ts. Perhaps exposing that would work?

Would you be open to a PR?

mrjackdavis avatar Oct 26 '22 22:10 mrjackdavis