fix: declare code and data properties in BaseError constructor#2294
fix: declare code and data properties in BaseError constructor#2294liamhess wants to merge 4 commits into
Conversation
📝 WalkthroughWalkthroughAdds a contributor entry for Liam Heß to documentation config and README; extends BaseError with two instance properties ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Please merge this with the other PR. I'm not gonna merge PR with errors so you can create another PR to fix it. I'm not sure if you know, but you can commit after the PR was created. PR is not real only. It's just a branch reference. |
Sorry @jcubic, I think I didn't explain clearly what I did: The BaseError type fix and the discoverGitdir fix are two separate issues. The BaseError type issue only was revealed as a side effect of the discoverGitdir fix PR and the two are really unrelated. However if you don't think this is nicer then I will gladly put both fixes in one PR. Is probably less work for both of us. It's your project and I'm just happy if I can land the fix, let me know what you think :) |
|
Maybe I'm missing something, but both of your PRs have the same BaseError changes that are required for the tests to pass after your changes. |
Yeah, that's confusing sorry. Usually GitHub allows you to choose the 'base branch' (right below the title) and then it only shows the commits and file diffs against that base branch. But I couldn't choose a base branch that is in a fork in #2293, maybe that is a limitation of GitHub, idk? |
While working on #2293 I stumbled upon a type error in
BaseError. It's not erroring today because no test currently use thefromJSON()return type, but it would failtest.typecheckif anyone writes a test that callsfromJSON()and then accesses.codeor.dataon the result.I'm fixing a bug or typo
npm run add-contributorand follow the prompts to add yourself to the READMESummary by CodeRabbit
New Features
Tests
Chores