mercredi 23 octobre 2019

Makefile command to run react test suite in child folder

I'm trying to create a Makefile that runs the test suite for my react app. From the root folder the react app is located at frontend/.

What make command can I create the achieve this? I've tried the following but no luck:

test-frontend:
    cd ./frontend/
    npm test

test-frontend:
    npm test ./frontend/

test-frontend:
    cd ./frontend/
    npm run-script build

Aucun commentaire:

Enregistrer un commentaire