apollo icon indicating copy to clipboard operation
apollo copied to clipboard

fix(test): fix the errors that are failing CircleCI tests

Open Jamiewarb opened this issue 4 years ago • 0 comments

The CircleCI tests are failing in at least 3 places:yarn lint, yarn test and tsc.

Linting

CircleCI build is failing from a tiny linter error. This fixes it

$ yarn lint

/home/circleci/project/test/fixture-local-state/plugins/apollo-config.js
  20:18  error  Expected parentheses around arrow function argument having a body with curly braces  arrow-parens

Jest

With the linter error fixed, the next step yarn test is now running and showing errors.
It looks like the reason for these errors is that the API the tests are hitting is down.

I'm not sure if this API will come back or not. For the meantime, I've adapted the code to use a different graphql endpoint.

We may want to look at creating a mock graphql endpoint to remove the flake from the tests

tsc

NOTE: Looking in to this now

Jamiewarb avatar Oct 24 '21 21:10 Jamiewarb