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: re-write existing-browser to typescript #1061

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

shadowusr
Copy link
Member

@shadowusr shadowusr commented Feb 10, 2025

What's done

  • existing-browser and all related files, including history, client-bridge and many others were re-written to typescript
  • fixed all unit tests that broke along the way

A reminder on why unit tests need fixing after migrating to TS: since we are using SWC, it transforms modules into non-editable getters, which cannot be stubbed in a sinon.stub(module, "method") manner. The only way to stub such modules is via proxyquire. In the future we'll migrate to vitest which has more advanced&convenient ways of doing this.

@shadowusr shadowusr force-pushed the users/shadowusr/TESTPLANE-433.re-write-to-typescript-1 branch from 7fb55f8 to 2019d55 Compare February 10, 2025 20:39
Copy link
Member

@sipayRT sipayRT left a comment

Choose a reason for hiding this comment

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

комменты только почисть, плз

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants