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

refactor: Bump to jasmine 5.4.0 #9453

Open
wants to merge 5 commits into
base: alpha
Choose a base branch
from

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Nov 21, 2024

Pull Request

Issue

Closes: #9399

Approach

done is deprecated and should be replaced with async / await

Tasks

  • Add tests
  • Add changes to documentation (guides, repository pages, code comments)
  • Add security check
  • Add new Parse Error codes to Parse JS SDK

Copy link

Thanks for opening this pull request!

@dplewis dplewis changed the title Jasmine 5.4.0 refactor: Bump Jasmine to 5.4.0 Nov 21, 2024
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.49%. Comparing base (ef33ac3) to head (a729f93).

Additional details and impacted files
@@           Coverage Diff           @@
##            alpha    #9453   +/-   ##
=======================================
  Coverage   93.49%   93.49%           
=======================================
  Files         186      186           
  Lines       14810    14810           
=======================================
  Hits        13846    13846           
  Misses        964      964           

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


🚨 Try these New Features:

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

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

Very nice!

@@ -3691,7 +3692,7 @@ describe('Parse.User testing', () => {
done();
});
});
}).pend('this test fails. See: https://github.com/parse-community/parse-server/issues/5097');
Copy link
Member

@mtrezza mtrezza Nov 21, 2024

Choose a reason for hiding this comment

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

Is the combined use of xit and .pend recommended? I thought one essentially excludes the other? Should xit be it when adding pend, or is there any advantage of combining them?

Copy link
Member Author

@dplewis dplewis Nov 21, 2024

Choose a reason for hiding this comment

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

xit.pend is not a function anymore

Copy link
Member

Choose a reason for hiding this comment

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

I misread the diff file. You are removing .pend, not adding it. In that case we'd loose the info why this test is disabled. Wouldn't it be better to use this syntax:

it('should not send a verification email if the user signed up using oauth', async () => {
  pending('this test fails.  See: https://github.com/parse-community/parse-server/issues/5097');
}
  • change from xit to it
  • change from chained .pend to pending() call inside test

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried it your way and the test failed. I added a comment so no info is lost

@mtrezza mtrezza changed the title refactor: Bump Jasmine to 5.4.0 refactor: Bump to jasmine 5.4.0 Nov 21, 2024
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.

Bump jasmine to 5.x
2 participants