-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 failed tests #2842
Fix failed tests #2842
Conversation
bd4670e
to
97aa3c4
Compare
97aa3c4
to
6603999
Compare
@@ -1,2 +1,2 @@ | |||
var {readFileSync} = require('fs'); | |||
var readFileSync = require('fs').readFileSync; |
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.
Other changes look fine, but this file was correct. If the test fails, then because Parcel isn't working correctly.
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.
Figured that. I wanted to see if the CI is gonna pass when I make the test pass on my local machine. Turns out there's a lint error on Windows but I don't have the OS to debug that 😓
That aside, I didn't know where to look at in order to fix this destructure case. Can you give me a hint? 🙏 Fixed in 3263a5f
EDIT:
Apparently upgrading all babel dependencies to the current latest version does solve the issue. But now there's an error with elm case instead. 🤦♂️ (build) Fixed in cecf8a4
Not sure what's the root cause but upgrading all babel dependencies to the current latest version fix the issue.
5897a1c
to
3263a5f
Compare
Now there's only a lint error on Windows left (build) 🎉. I don't have a Windows machine to check what causes the error, so it'd be great if someone else can help me with this. |
The Windows part of |
This would also bring back the corejs warning:
|
According to parcel-bundler#2842 (comment)
I assume we will stick with Please check 5e15771 out if that's good enough as the fix for the warning. |
* Fix error from duplicated type (T is already declared) * Fix code format by running `yarn format` * Fix failed test caused by Babel More info: #2842 (comment) * Fix failed test on fs-destructure Not sure what's the root cause but upgrading all babel dependencies to the current latest version fix the issue. * Try bumping elm packages version hoping this will fix failed tests * Fix corejs warning According to #2842 (comment) * Upgrade @babel dependencies * Upgrade elm dependencies
Closing in favor of #2990 which is based on this PR |
↪️ Pull Request
Right now the
master
branch is having this errorMany recent PRs are failing the CI because of this.
I also took this chance to fix the code format as well. There're some files that aren't formatted correctly by
yarn format
. 6603999💻 Examples
https://dev.azure.com/devongovett/devongovett/_build/results?buildId=1436 (from #2836)
https://dev.azure.com/devongovett/devongovett/_build/results?buildId=1451 (from #2840)
https://dev.azure.com/devongovett/devongovett/_build/results?buildId=1450 (from #2839)
🚨 Test instructions
yarn format
shouldn't produce any changes.✔️ PR Todo