React Testing Library Mocking API Call with Form #26

preview_player
Показать описание
We are covering lots of things relected to testing here in react or full-stack apps like -
React Testing using Jest
React Testing with Testing Library React
React testing components
react mocking axios and api calls
react micking modules and testing hooks and components
react testing components using jest mock
React Testing using Enzyme Library
React API Testing, Component Testing, Redux Testing
react Router, Sanapshot testing, unit testing

Javascript Testing with different tools and Types of tests
- Unit tests:
- Integration tests
- functional tests

Tools and Libs
Karma, Jasmine, Jest, TestCafe, Cypress, webdriverio,
Mocha, Jasmine, Jest, Cucumber, TestCafe, Cypress,
Sinon, Jasmine, enzyme, Jest, testdouble,
Istanbul, Jest

- Start with Test Launchers
- Testing Structure
- Assertion Functions
- spies
- Mocks or fake server

Рекомендации по теме
Комментарии
Автор

That was a clear and practical example.
Thanks mate I have been struggling with this part of testing but your tutorial has helped a lot.

brendanhurd
Автор

Using typescript I get a linter error on this line:
APIService.fetchApi = jest.fn(); // Cannot assign to 'fetchApi' because it is a read-only property.ts(2540)


The test also fails as the function doesn't appear to be mocked...

jamesdaniels
welcome to shbcf.ru