Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 4.07 KB

File metadata and controls

79 lines (51 loc) · 4.07 KB

Testing

  • You know how to test custom React hooks.
  • You know how to test a selector function.
  • You know how to test components and functions
  • You know how to mock functions and global objects
  • You know how to add snapshot testing
  • You know how to add and configure Jest in the build tools
  • You know how to install and configure it in the build tools
  • You know how to query for the component you want to test according to library best practices
  • You know how to mock server's response
  • You know how to test the redux store actions
  • You can install and configure it in a project
  • You can test if an HTML node has the proper style
  • You can create snapshots with readable classes and proper styles properties
  • You know how to test when an action has been put for processing
  • You know how to provide an initial state for a saga execution
  • You know how to check if the expected action has been called
  • You know how to mock API calls with or without payload
  • You know how to set configuration header's and meta data
  • You can write assertions to check if API endpoint has been called with proper data
  • You know how to mock Date object to return specific value in test environment

Contribution

We are very open to contributions to extend or change the requirements based on your gut and experience. To contribute you can use a pull request which will be later validated by our technical team and added to the main docs.

If you will spot any issues please add them in the Issues section.

Credits

This page is maintained by the 🔹 Flairs.ai and 🇵🇱 Apptension teams.

If you would like to create a dedicated Developer Handbook for your company, you can e-mail us 👉 contact@flairs.ai

License

MIT License

© 2020 Flairs Sp. z o.o.

Built and maintained by Flairs and Apptension.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.