0
votes

I have a Django/React app that I'd like to integrate some pre-deployment testing into. I can build tests in django for python specific stuff, but how would I go about building some robust testing for my frontend? Do I need to build some Selenium functions that test my react app in the browser? Or is there a more efficient way to do this in react?

1

1 Answers

0
votes

-Always run yarn build after you've updated your front-end.

While developing, you have to run the react server and Django server separately to make use of the built-in hot-reload of these servers.

 $ yarn build
 $ poetry shell
 $ python manage.py runserver.

This is the command I use to test the frontend of my Django/react app.