testing library react current is not available code example Example: install react react testing library npm install --save-dev @testing-library/react