-
Notifications
You must be signed in to change notification settings - Fork 301
feat: fixes after package-lock regen #1837
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
base: master
Are you sure you want to change the base?
feat: fixes after package-lock regen #1837
Conversation
|
Thanks for the pull request, @filippovskii09! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Update the status of your PRYour PR is currently marked as a draft. After completing the steps above, update its status by clicking "Ready for Review", or removing "WIP" from the title, as appropriate. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
46f8906 to
d6961e9
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1837 +/- ##
==========================================
+ Coverage 91.18% 91.56% +0.37%
==========================================
Files 349 349
Lines 5831 5832 +1
Branches 1376 1380 +4
==========================================
+ Hits 5317 5340 +23
+ Misses 497 473 -24
- Partials 17 19 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b48ac34 to
5acf4e4
Compare
| const actual = jest.requireActual('@openedx/paragon'); | ||
| const PropTypes = jest.requireActual('prop-types'); | ||
|
|
||
| const MockModalDialog = ({ children, isOpen, onClose }) => { |
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.
[important]: Is it possible to abandon the mock of this Paragon component?
| // Mock Intl.DateTimeFormat to return a consistent timezone across all environments | ||
| // This ensures that the browser_timezone query parameter matches the pact file | ||
| const OriginalDateTimeFormat = Intl.DateTimeFormat; | ||
| jest.spyOn(Intl, 'DateTimeFormat').mockImplementation((...args) => { |
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.
[question]: What exactly caused this change? Why did the tests work without it before?
…ning into filippovskii/fix/deps-after-lock-regen
|
|
||
| beforeEach(async () => { | ||
| global.innerWidth = breakpoints.large.minWidth; | ||
| global.innerWidth = breakpoints.large.minWidth ?? 992; |
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.
It would be nice for all breakpoints we use as fallbacks to have constant variables, instead of hardcoded values.
webpack.dev.config.js
Outdated
| }); | ||
|
|
||
| // Fix for sass-loader deprecation warnings | ||
| config.module.rules.forEach((rule) => { |
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.
Can we do without this? I think there is nothing wrong with displaying warnings.
|
|
||
| // delete config.testURL; | ||
|
|
||
| config.reporters = [...(config.reporters || []), ["jest-console-group-reporter", { |
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.
Could you add some context as to why we are removing this?
|
Sandbox deployment successful 🚀 |
|
Sandbox deployment failed 💥 |
|
Sandbox deployment successful 🚀 |
Description
This PR solved several issues that arose after deleting the
node_modulesfolder, thepackage-lock.jsonfile and running thenpm installcommand for install dependencies.List of problomes
How to test it
rm -rf node_modules package-lock.jsonnpm installornpm inpm run test,npm run build,npm run types,npm run lint