Be sure to have the latest Nodejs and NPM installed: Nodejs >= 14.7.0 , NPM >= 6.14.7
npm run initnpm run testnpm install -g jest jest-cli
export DISPLAY=:0
jestAutomated testing for a web app with javascript requires browser emulation. For these tests we use the selenium python module (included in requirements.txt) and chromedriver. The latter can be installed at the command line as follows for linux:
sudo apt install chromium-chromedriverOr installed separately for windows:
Now unit tests can be invoked as follows.
npm run pytestLinux:
npm run debugWindows: (in separate powershell terminals):
npm run start-backend
npm run start-react
npm run start-electron