Skip to content

rhyuen/now-serverless-circleci

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published