* squash prev commits
* remove unneeded axios mock
* set maxWorkers=2
* run with a slow test reporter
* revert: run with a slow test reporter
* Add url check to mock and further reading and alternatives
* use MSW for all API calls in cookbook test suits
* Comments with implem. explanation
* Arrange docs initially to reflect new scenario and remove jest.setTimeout
* updating docs (1)
* updating docs (2)
* updating docs with global guarding and conclusion
---------
Co-authored-by: stevegalili <steve.galili@mywheels.nl>
* create a Jotai examples dir in cookbook with related utils, add state management recipes dir
* add docs with examples
* extract state from component to state, utils, simplify types and custom render func.
* refactor: tweaks & cleanup
* make cookbook app runnable
* update yarn.lock file
* fix TS issue and spelling
* remove duplicate files and adjust testMatch in config to ensure no utils test run
---------
Co-authored-by: stevegalili <steve.galili@mywheels.nl>
refactor: tweak cookbook (#1636)
* refactor: move files around
* refactor: simplify
* chore: remove custom fonts
* chore: tweak eslint
* chore: update yarn.lock
* create a Jotai examples dir in cookbook with related utils, add state management recipes dir
* add docs with examples
* extract state from component to state, utils, simplify types and custom render func.
* refactor: tweaks & cleanup
---------
Co-authored-by: stevegalili <steve.galili@mywheels.nl>
Co-authored-by: Maciej Jastrzębski <mdjastrzebski@gmail.com>
* feat: add "cleanup" function
* docs: add "cleanup" section
* feat: automatically call "cleanup" after each test
...if an "afterEach" global function is defined, and process.env.RTL_SKIP_AUTO_CLEANUP is falsy.
Taken from: https://github.com/testing-library/react-testing-library/blob/14670debd45236d2c5d0a61a83dadc72af1bef7c/src/index.js
* docs: mention automatic cleanup
* add within
* fix lint
* Updated tests, added auto-cleanup test
* Added ways to prevent auto cleanup
* Small fix
* Code review changes
* Update website/docs/API.md
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
* More changes
* Removed afterEach(cleanup) calls in examples
* Code cleanup
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
* Proof of concept - CodeSandbox embed
* Prettier fix
* Moved examples below API Reference
* Created the examples directory
Includes react-navigation example
* Article on React Navigation
* Specify rootDir for testing
Prevents CI to run example tests
* remove jest-transform-stub and identity-obj-proxy, add transformIgnorePatterns
* update docs
* rearrange
* remove non-essential files
* rename Navigation -> AppNavigator
* reword comment
* add links and explanations
* remove index file, because it's not an app anyway
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>