Tag: javascript
All the articles with the tag "javascript".
-
REACT unit testing use Jest and Testing Library
A practical guide to setting up Jest configuration and writing React unit tests with Testing Library and jest-when, including mocking i18n and API calls.
#react #javascript #tooling Read -
Set up webpack for mock testing
Use connect-api-mocker and webpack dev-server proxy to mock or forward backend API calls so React UI development can proceed independently.
#react #javascript #frontend #tooling Read -
Set up react in NodeJS
Combine a React frontend and NodeJS backend into a single server to avoid CORS, serving both static bundles and dynamic /api routes.
#react #nodejs #javascript #frontend Read -
Math.js and Plotly.js in React
A small React demo that evaluates any f(x) with math.js and plots it with Plotly — plus the plain-HTML equivalent.
#react #javascript #math #frontend Read -
PassportJS in NodeJS handle Oauth2
How to configure PassportJS in a NodeJS backend to handle Google OAuth2 for both mobile and web clients, with routes and callback handling.
#nodejs #passport #oauth #javascript Read