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

chore: replace jest with mocha VSCODE-516 #668

Merged
merged 9 commits into from
Aug 12, 2024
Merged

Conversation

mcasimir
Copy link
Contributor

Description

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@Anemy Anemy changed the title chore: replace jest with mocha chore: replace jest with mocha VSCODE-516 Jan 24, 2024
@Anemy Anemy added the WIP label Aug 8, 2024
@Anemy
Copy link
Member

Anemy commented Aug 8, 2024

Updated the tests to all run and the config to pass. This did increase the bundle size by ~2MB though which is substantial (do not merge).
I don't think it's the react bump causing it. It could be we're now packing some testing libraries by accident, or it's the ejson-shell-parser add.

@Anemy
Copy link
Member

Anemy commented Aug 12, 2024

main this branch
Screenshot 2024-08-09 at 1 56 36 PM Screenshot 2024-08-09 at 1 18 05 PM

Slightly unrelated, noticed we're bundling a ton of frontend deps in the main extension bundle we don't need. Created https://jira.mongodb.org/browse/COMPASS-8154 for that.

@Anemy
Copy link
Member

Anemy commented Aug 12, 2024

Looks like merging from main fixed it. Should be good to go now.

@Anemy Anemy merged commit baf4934 into main Aug 12, 2024
5 checks passed
@Anemy Anemy deleted the replace-jest-with-mocha branch August 12, 2024 18:21
@@ -1076,6 +1076,7 @@
}
},
"dependencies": {
"@babel/core": "^7.24.6",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we use this dependency somewhere?

@@ -12,9 +13,10 @@ const connectionFormTestId = 'connection-form-modal';
describe('OverviewPage test suite', function () {
afterEach(() => {
cleanup();
Sinon.restore();
sinon.restore();
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I think everywhere in codebase, we stick to sandbox. e.g. sandbox.restore(), sandbox.spy().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants