Skip to content

fix: don't duplicate type-only check on Windows#385

Merged
ezolenko merged 1 commit into
ezolenko:masterfrom
agilgur5:fix-test-type-only-windows
Jul 21, 2022
Merged

fix: don't duplicate type-only check on Windows#385
ezolenko merged 1 commit into
ezolenko:masterfrom
agilgur5:fix-test-type-only-windows

Conversation

@agilgur5

@agilgur5 agilgur5 commented Jul 20, 2022

Copy link
Copy Markdown
Collaborator

Summary

Ensure that the type-only / "missed" type-check doesn't duplicate on Windows

Details

  • gotta remember to normalize file names 🙃

    • this fixes a failing test on Windows by fixing the underlying bug
  • refactor: improve normalization in errors.spec

    • normalize all calls to local, instead of just one
    • this doesn't affect the tests, only the source code change does, but I added this first and it's better practice / test future-proofing

Review Notes

I confirmed on CI on my fork that tests pass on Windows now

  • EDIT: and as double check, they pass here on this PR too

- gotta remember to normalize file names 🙃
  - this fixes a failing test on Windows by fixing the underlying bug

- refactor: improve normalization in errors.spec
  - normalize _all_ calls to `local`, instead of just one
  - this doesn't affect the tests, only the source code change does, but I added this first and it's better practice / test future-proofing
@agilgur5 agilgur5 added kind: bug Something isn't working properly topic: OS separators Path normalization between OSes. Windows = '\', POSIX = '/'. Rollup resolve = native, TS = POSIX scope: tests Tests could be improved. Or changes that only affect tests labels Jul 20, 2022
@agilgur5 agilgur5 added the topic: type-only / emit-less imports Related to importing type-only files that will not be emitted label Jul 20, 2022
@ezolenko ezolenko merged commit c2b3db2 into ezolenko:master Jul 21, 2022
@agilgur5 agilgur5 deleted the fix-test-type-only-windows branch July 2, 2023 21:23
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 topic: OS separators Path normalization between OSes. Windows = '\', POSIX = '/'. Rollup resolve = native, TS = POSIX topic: type-only / emit-less imports Related to importing type-only files that will not be emitted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants