Simple example of having a test script spawn a server and use Jest as an api test runner.
To install:
npm i
Run:
npm run test
Run:
node main.js
To hit the endpoint from yout browser, visit http://localhost:4600/health
Simple example of having a test script spawn a server and use Jest as an api test runner.
To install:
npm i
Run:
npm run test
Run:
node main.js
To hit the endpoint from yout browser, visit http://localhost:4600/health