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

fix: missing tsconfig error shouldn't say undefined #383

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

agilgur5
Copy link
Collaborator

Summary

Improve the error message when a tsconfig path doesn't have a file. The error message should say the path passed in, not 'undefined'

Details

  • per the conditional above this line, file is falsey, so printing it doesn't make sense

    • per same conditional though, pluginOptions.tsconfig exists, so we can print that
  • fixes a test TODO/FIXME that had to workaround this bug as well

- per the conditional above this line, `file` is falsey, so printing it doesn't make sense
  - per same conditional though, `pluginOptions.tsconfig` exists, so we can print that

- fixes a test TODO/FIXME that had to workaround this bug as well
@agilgur5 agilgur5 added kind: bug Something isn't working properly scope: tests Tests could be improved. Or changes that only affect tests labels Jul 10, 2022
@agilgur5
Copy link
Collaborator Author

Tests are failing due to #377 ; the test for this change passes

@ezolenko ezolenko merged commit 76109fc into ezolenko:master Jul 12, 2022
@agilgur5 agilgur5 deleted the fix-missing-tsconfig-error branch July 2, 2023 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working properly scope: tests Tests could be improved. Or changes that only affect tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants