Closed yf-yang closed 6 months ago
@dai-shi I found some test cases (even when I run them locally) are broken and suspect I can't directly import those examples because jotai-scope package resolution is incorrect? Do you have any suggestion?
Specifically, I'd like to know why examples can resolve to correct ScopeProvider in the repository, but the test cases can't.
Resolve by copy codes from examples.
I'm wondering if there is any way to share codes between examples and tests.
btw, I'm migrating to new setup: https://github.com/zustandjs/zustand-valtio/pull/2
I'll work on some repos in jotaijs, but for jotai-scope
it's up to you, you can follow my setup, or do with your own setup.
I'm wondering if there is any way to share codes between examples and tests.
It's also up to you, but my goal was to make examples standalone apps. For example, this works: https://githubbox.com/jotaijs/jotai-scope/tree/main/examples/02_scope
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.