Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.09 KB

README.md

File metadata and controls

29 lines (17 loc) · 1.09 KB

CircleCI

ABOUT

An attempt at using CircleCI with Zeit's Now and Typescript.

Issues

  1. Connection for HTTP requests in tests are always refused when run in CircleCI but not when the tests are run locally.

  2. It seems that jest sets NODE_ENV to test by default. source:stackoverflow

Things I've tried

  1. Switching between localhost and 127.0.0.1 in the target url.
  1. Using the beforeAll(() => {}) call in one of the jest tests.
  1. Adding the .now folder fields to the CircleCI build environment to make the 'project not linked to NOW' error field go away.
  1. Found this link that gets an ip address. It looks promising.

Resolved Issues

SOLN: 32 commits later and it works. You need two commands instead of one.

$ now dev --listen 8080 & wait-on tcp:8080 $ npm run test