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

feat: migrate to mocha 5 #115

Merged
merged 2 commits into from
Aug 4, 2024
Merged

feat: migrate to mocha 5 #115

merged 2 commits into from
Aug 4, 2024

Conversation

junners
Copy link
Member

@junners junners commented Aug 4, 2024

Motivation

Chai is the last package that isn't up to date with the latest versions
migrating chaiv4 to chai v5 is a breaking change but it allows us to be updated with all the security and vulnerability scans.

Tradeoff, chai v5 is only delivered through ESM modules.
This meant that references to chai would now need to be done via dynamic imports. This adds a beforeAll call on mocha hooks.
We cannot move the package out of commonjs until we further test the core-package's integration with sfdx. generating a module that is esnext or nodenext might break how we integrate with the sfdx package or the umd module or the package being generated for the vsce

@junners junners merged commit 58f3f9e into master Aug 4, 2024
3 checks passed
@junners junners deleted the feature/migrate-chai-5 branch August 4, 2024 16:25
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.

1 participant