• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

graphql / graphql-js / 1086 / 1
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 19 Jul 2016 11:42PM UTC
Files 137
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Jul 2016 11:33PM UTC coverage: 98.302%. Remained the same
1086.1

push

travis-ci

web-flow
Add `message` and `locations` as enumerable properties on GraphQLError. (#443)

As brought up in #426, it can be confusing to return instances of `Error` from the `graphql` function since the expectation is that you will call `JSON.stringify` and submit the result to a client. Calling `JSON.stringify` on an instance of `Error` results in `{}` since it has no enumerable properties.

In order to have behavior that matches the GraphQL spec easier to achieve, this makes these two properties enumerable. I think this will be the best of both worlds - anyone who wishes the operate directly on the Error instances will still have the ability to do so (for example, to access the `stack` property), but it can still be converted to JSON directly and get a spec-compliant result.

7179 of 7303 relevant lines covered (98.3%)

1370.54 hits per line

Source Files on job 1086.1
  • Tree
  • List 0
  • Changed 6
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1086
  • Travis Job 1086.1
  • 03e62322 on github
  • Prev Job for on master (#1083.1)
  • Next Job for on master (#1087.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc