cjoudrey / graphql-schema-linter

Validate GraphQL schema definitions against a set of rules
MIT License
694 stars 62 forks source link

temporaryConfigDirectory: no package.json file needed for Tests. #197

Closed gagoar closed 4 years ago

gagoar commented 5 years ago

This PR provides a helper to create on the fly a package.json file with the desired options.

_this is the solution we discussed on https://github.com/cjoudrey/graphql-schema-linter/pull/196#discussion_r352382723_

This solution could also be applied to rc_file and js_file respectively

I have the same solution with sinon. I can share it as well.

gagoar commented 4 years ago

after this PR is merged, I can work in make it generic to use it in the other config cases.

cjoudrey commented 4 years ago

Thanks again! 😄