Skip to content

Conversation

@filippovskii09
Copy link

@filippovskii09 filippovskii09 commented Dec 4, 2025

Description

This PR solved several issues that arose after deleting the node_modules folder, the package-lock.json file and running the npm install command for install dependencies.

List of problomes

  1. Jest reporter issue jest-console-group-reporter.
  2. Sass build warnings.
  3. Paragon modal issues in tests.
  4. frontend-lib-special-exams test failures.

How to test it

  1. Run this command rm -rf node_modules package-lock.json
  2. Run this command npm install or npm i
  3. Re-run your local container
  4. And run these commands npm run test, npm run build, npm run types, npm run lint
  5. And test UI

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Dec 4, 2025
@openedx-webhooks
Copy link

Thanks for the pull request, @filippovskii09!

This repository is currently maintained by @openedx/committers-frontend-app-learning.

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 approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To 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:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If 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 PR

Your 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:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@github-project-automation github-project-automation bot moved this to Needs Triage in Contributions Dec 4, 2025
@filippovskii09 filippovskii09 force-pushed the filippovskii/fix/deps-after-lock-regen branch from 46f8906 to d6961e9 Compare December 4, 2025 15:31
@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.51%. Comparing base (b282bc0) to head (1403bc7).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1837      +/-   ##
==========================================
+ Coverage   91.13%   91.51%   +0.37%     
==========================================
  Files         348      348              
  Lines        5801     5801              
  Branches     1330     1334       +4     
==========================================
+ Hits         5287     5309      +22     
+ Misses        497      475      -22     
  Partials       17       17              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@filippovskii09 filippovskii09 self-assigned this Dec 5, 2025
@filippovskii09 filippovskii09 force-pushed the filippovskii/fix/deps-after-lock-regen branch from b48ac34 to 5acf4e4 Compare December 5, 2025 15:00
const actual = jest.requireActual('@openedx/paragon');
const PropTypes = jest.requireActual('prop-types');

const MockModalDialog = ({ children, isOpen, onClose }) => {
Copy link
Contributor

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) => {
Copy link
Contributor

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?

@itsjeyd itsjeyd added the product review PR requires product review before merging label Dec 11, 2025
@itsjeyd itsjeyd moved this from Needs Triage to Waiting on Author in Contributions Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U product review PR requires product review before merging

Projects

Status: Waiting on Author

Development

Successfully merging this pull request may close these issues.

4 participants