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

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

Build:
Build:
LAST BUILD BRANCH: directives
DEFAULT BRANCH: master
Ran 07 Dec 2017 10:25PM UTC
Jobs 1
Files 173
Run time 10s
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
2803

push

travis-ci

leebyron
Validate schema root types and directives

This moves validation out of GraphQLSchema's constructor (but not yet from other type constructors), which is responsible for root type validation and interface implementation checking.

Reduces time to construct GraphQLSchema significantly, shifting the time to validation.

This also allows for much looser rules within the schema builders, which implicitly validate while trying to adhere to flow types. Instead we use any casts to loosen the rules to defer that to validation where errors can be richer.

This also loosens the rule that a schema can only be constructed if it has a query type, moving that to validation as well. That makes flow typing slightly less nice, but allows for incremental schema building which is valuable

3975 of 4493 branches covered (88.47%)

202 of 202 new or added lines in 9 files covered. (100.0%)

9608 of 9741 relevant lines covered (98.63%)

1291.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/execution/execute.js
1
100.0
src/type/schema.js
1
100.0
src/type/validate.js

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/utilities/isValidJSValue.js
1
100.0
src/utilities/__tests__/schemaPrinter-test.js
2
100.0
src/utilities/valueFromAST.js
2
100.0
src/utilities/buildASTSchema.js
2
100.0
src/validation/__tests__/harness.js
4
100.0
src/type/validate.js
6
100.0
src/execution/execute.js
11
100.0
src/type/__tests__/validation-test.js
14
100.0
src/type/definition.js
Jobs
ID Job ID Ran Files Coverage
1 2803.1 07 Dec 2017 10:25PM UTC 0
98.63
Travis Job 2803.1
Source Files on build 2803
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2803
  • 9b5707a5 on github
  • Prev Build on validate-top-level-schema (#2784)
  • Next Build on validate-top-level-schema (#2805)
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