Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: make 'path' and 'locations' enumerable only if present #1305

Merged
merged 2 commits into from
Apr 6, 2018

Conversation

IvanGoncharov
Copy link
Member

Also cleanup tests from 'undefined' and 'containSubset'.

@leebyron I split up non-breaking changes from #1284
I think they are useful by itself since they make tests more readable.

@leebyron
Copy link
Contributor

leebyron commented Apr 5, 2018

This looks great - do you mind rebasing and looking at the tests? Looks like the build is failing with test failures

@IvanGoncharov
Copy link
Member Author

@leebyron Fixed. To make validation tests less fragile I made them expect a subset of errors.

@leebyron
Copy link
Contributor

leebyron commented Apr 6, 2018

That seems okay, but I'm not sure that I would agree that makes them less fragile - it just means they're more likely to pass when really there is an error.

Ideally these should detect the exact set of schema validation errors and we should write the test so that each test introduces only the validation error it expects to catch

@leebyron
Copy link
Contributor

leebyron commented Apr 6, 2018

Going to merge this, but we should still try to improve those tests

@leebyron leebyron merged commit 92cb4a0 into graphql:master Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants