-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
feat: up tsconfig target for more modern syntax #1780
Conversation
Ok well I expected this to be a more impactful change, but it seems everything seems to be working just fine :) gave this a quick spin on our example app and everything works, tested on ff/safari/chrome, tested on node 18, didnt run into any issues, so I think we can go ahead and merge this if you agree. output looks a lot better, and will make debugging a lot easier :) |
f0c4414
to
d3c0ccd
Compare
tsconfig.json
Outdated
@@ -1,7 +1,7 @@ | |||
{ | |||
"compilerOptions": { | |||
"strict": true, | |||
"target": "es6", | |||
"target": "ESNext", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recall some tooling, I think it was Cypress, that has trouble consuming modern JavaScript. They require third-parties to be CommonJS. @thepassle, should that be our concern?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds a little odd to me. A browser launcher expects code to be cjs? 🫠
I've updated the branch. The change itself looks great, just need to make sure we aren't breaking third parties that cannot digest modern JavaScript. @thepassle, may I ask you to give this WIP build a try in our Examples repo? If all those pass, then we have nothing to worry about, |
6e20d95
to
c6ad327
Compare
Is the Examples repo |
@thepassle, the examples repo needed the upgrade to msw@2.0. Just merged that upgrade, the tests are passing. You can give this build a try there. I will also spend some time bringing back smoke tests but will make them on-demand (they are way too expensive to be run in CI on each change but it's a good idea to run them on changes where we expect the unexpected, like this one). |
Alright cool, thanks. I'll give this another try today |
I've merged the smoke test workflow (as well as the bash script for local runs) so we should be able to run any PR against the examples repo easier now. I will update this branch and give it a try. |
cool, thanks, let me know if theres anything I can help with :) |
@thepassle, do you happen to know how to allow the same GitHub workflow to run with both I would like for the
I have the following config: on:
# Always run smoke tests upon a successful
# "ci" job completion on "main".
workflow_run:
workflows: ['ci']
branches: [main]
types: [completed]
workflow_dispatch:
jobs:
examples:
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_dispatch }} But GitHub doesn't seem to evaluate the |
I don't have a whole bunch of experience with github actions, but this is what github copilot tells me 😛
|
@thepassle, thanks! That seems to be working (at least it doesn't discard the manual runs). Started a smoke test on this branch: https://github.com/mswjs/msw/actions/runs/6730818633 |
Hehe nice Fingers crossed 🙂 |
The smoke tests are passing. I deem this change worthy. Let's add it to the next minor version bump. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will schedule this in the next minor version.
Updated the examples to use 2.0.14. Re-running the smoke tests against these changes and then merging. |
Alas, the smoke tests are broken :( Passes locally, passes in the Examples repo, fails miserably in the |
Released: v2.1.0 🎉This has been released in v2.1.0! Make sure to always update to the latest version ( Predictable release automation by @ossjs/release. |
No description provided.