I have my amplify project connected to gitlab And added this segment to run API Jest tests:
test: phases: preTest: commands: - npm install