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

chore: Bump @stoplight/json-ref-resolver from 2.2.0 to 2.3.0 #664

Merged
merged 2 commits into from
Oct 10, 2019
Merged

chore: Bump @stoplight/json-ref-resolver from 2.2.0 to 2.3.0 #664

merged 2 commits into from
Oct 10, 2019

Conversation

nulltoken
Copy link
Contributor

@nulltoken nulltoken commented Oct 10, 2019

Needed by #635

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

wrt "hacking the tests", this isn't the ideal way to do this, but as the they do not depend
on the newly introduced graph member, that should be enough.

Relevant context:

@nulltoken
Copy link
Contributor Author

@P0lip Could you please take a look a this when you've got some spare time?

({
result: {},
refMap: {},
errors: [],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's avoid the type trickery here.
Add the following import
import { DepGraph } from 'dependency-graph';
and then you should be able to include graph

errors: [],
graph: new DepGraph(),

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@P0lip My bad. It's now fixed.

src/__tests__/spectral.test.ts Outdated Show resolved Hide resolved
@P0lip P0lip changed the title Bump json-ref-resolver and hack the test so that they pass chore: Bump @stoplight/json-ref-resolver from 2.2.0 to 2.3.0 Oct 10, 2019
@P0lip P0lip added the dependencies Pull requests that update a dependency file label Oct 10, 2019
P0lip
P0lip previously approved these changes Oct 10, 2019
Copy link
Contributor

@P0lip P0lip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
Will merge as soon as the CI checks are green.

@nulltoken
Copy link
Contributor Author

@P0lip Shouldn't we also explicitly bump the reference in package.json as spectral tests wouldn't pass any longer against a 2.2.0?

@P0lip
Copy link
Contributor

P0lip commented Oct 10, 2019

Ah, yeah, we should do that.
I missed that.

@P0lip
Copy link
Contributor

P0lip commented Oct 10, 2019

@nulltoken could you bump it?

@nulltoken
Copy link
Contributor Author

@nulltoken could you bump it?

Bumped!

@P0lip P0lip merged commit 6e4bff6 into stoplightio:develop Oct 10, 2019
@nulltoken nulltoken deleted the ntk/fix_tests branch October 10, 2019 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants