Autograding with React apps

Has anyone managed to use autograding with React apps

I created new React app using create-react-app. There I made one component that just renders Hello world. Finally I have one jest test that check the output.

When I run test locally (npm test) everything is working correctly. But when I create classroom assignment from this repository and add test there (Node.js test) it doesn’t work. Autograding step in the actions always runs until the timeout comes and fails.

Any ideas what might go wrong?

@juhahinkula To help folks debug, I’d recommend adding the following info:

  • Setup Command
  • Run Command
  • Repo URL or paste of the actions logs.


Here is the repository

There you can also find autograding actions.

The app has been created using create-react-app