jeudi 17 décembre 2020

how to give debug flag for jest

in node js,

i want through the terminal run some command like :

debug=true jest -f filename

,

so i could open debugger for some test file(not just run the test, debug the test). how can i add flags like that so i can achieve that? i tried add scripts but with script i must write in every comand start "npm run" and also i couldnt achieve the full command that i wanted to run.

tried some script like:

"debug=true": "ndb jest"

but as i said didnt worked well

Aucun commentaire:

Enregistrer un commentaire