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

Adding compatibility check for all supported versions of graphql #156

Merged
merged 6 commits into from
Feb 19, 2018

Conversation

jnwng
Copy link
Contributor

@jnwng jnwng commented Feb 19, 2018

As new versions of graphql get released, its hard to figure out whether or not we're honoring our peerDependencies and actually supporting all versions of graphql. test-all-versions allows us to configure our compatibility matrix and run them on every PR to ensure that we know when we're making backwards-incompatible changes.

The test files here are split because while the functionality of graphql-tag does not differ between versions, the output of one of the packages we depend on does differ. I'm capturing that difference by splitting the tests and confirming that, yes, we do support both versions. In the future, if a PR were to break one or both of the tests, we could then determine that we need to put through a major version change and also change our compatibility matrix. I wish there was a better way to capture the difference in output besides duplicating the tests.

@jnwng jnwng merged commit cf75a00 into apollographql:master Feb 19, 2018
@jnwng jnwng deleted the jw/test-all-versions branch February 19, 2018 20:40
jnwng added a commit to jnwng/graphql-tag that referenced this pull request Feb 19, 2018
…pollographql#156)

* Adding compatibility testing for all `graphql` versions

* Running `tav` only in CI and latest otherwise

* Bumping to capture more versions of `graphql`

* Only check compatibility

* Try running `yarn test` instead

* Run `tav` _after_ testing latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant