I need to test an API served via HTTPS with mocha and super test (the certificate are not expired)
HTTPS
mocha
super test
This is a gist of the serve
just for everyone else who is also wondering what to do. Add thison top of your test.js and you will be fine:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';