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

graphql / graphql-js / 3006
99%
master: 98%

Build:
Build:
LAST BUILD BRANCH: directives
DEFAULT BRANCH: master
Ran 20 Dec 2017 09:53PM UTC
Jobs 1
Files 181
Run time 15s
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

pending completion
3006

push

travis-ci

leebyron
Only trigger "one instance of graphql" error in DEV environments.

This ensures the additional checking for multiple graphql instances only occurs in non-production builds. Not only does this improve the performance for production builds, it also solves a spurious error case for minified builds:

Since this additional check compares the `.name` of the constructors as a proxy for determining if two classes are representationally equal, minified builds may result in spurious false-positives if class names are minified to single-character names and those characters are likely to conflict.

This doesn't require `process` to exist (defaulting to the non-production mode), but bundlers like Webpack should consider using a stripping transform (see: https://webpack.js.org/guides/production/#specify-the-environment) in production builds if they also use a minifier.

4155 of 4671 branches covered (88.95%)

9 of 9 new or added lines in 1 file covered. (100.0%)

10374 of 10512 relevant lines covered (98.69%)

1570.78 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
src/jsutils/instanceOf.js
Jobs
ID Job ID Ran Files Coverage
1 3006.1 20 Dec 2017 09:53PM UTC 0
98.69
Travis Job 3006.1
Source Files on build 3006
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3006
  • 496c1a07 on github
  • Next Build on dev-only-instanceof (#3008)
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