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

test: ensure declarationMap sources are correct #403

Merged
merged 1 commit into from Aug 25, 2022

Conversation

agilgur5
Copy link
Collaborator

@agilgur5 agilgur5 commented Jul 29, 2022

NOTE: this is built on top of #386 as the testDir changes there are required to have a correct outDir. As such, I've marked this PR as "Draft" until that PR is merged.
Rebased on top and marked as ready for review.

Summary

Add a test for declarationMap sources to make sure they're correct after #221 / #204

Details

@agilgur5 agilgur5 added kind: internal Changes only affect the internals, and _not_ the public API or external-facing docs scope: tests Tests could be improved. Or changes that only affect tests labels Jul 29, 2022
@agilgur5
Copy link
Collaborator Author

CI failed on an integration test suite timeout, but this PR itself shouldn't have increased the time by more than some milliseconds, so think it makes sense to just re-run CI in this case.

- since we set a placeholder `outDir` initially, TS sets declaration map sources to that placeholder dir
  - then, after ec0568b, we remap that to the correct dir that Rollup outputs to
    - this test checks that the remap happens and is correct
@agilgur5 agilgur5 marked this pull request as ready for review August 24, 2022 15:30
@agilgur5 agilgur5 requested a review from ezolenko August 24, 2022 15:44
@ezolenko ezolenko merged commit 8383500 into ezolenko:master Aug 25, 2022
@agilgur5 agilgur5 deleted the test-dec-map-sources branch July 2, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: internal Changes only affect the internals, and _not_ the public API or external-facing docs 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