fix(deps): align mocha/chai versions in node envs#10178
Open
davidfirst wants to merge 2 commits intomasterfrom
Open
fix(deps): align mocha/chai versions in node envs#10178davidfirst wants to merge 2 commits intomasterfrom
davidfirst wants to merge 2 commits intomasterfrom
Conversation
Update components to use node-babel-mocha@0.2.5 and node-typescript-mocha with aligned peer dependencies (mocha@11.7.1, chai@5.2.1) to prevent multiple pnpm installations with different peer dependency hashes. This fixes TypeScript compilation errors in capsules caused by type mismatches between different copies of the same package. Related: https://bit.cloud/teambit/node/~change-requests/align-mocha-11-YQbM2C9YG
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aligns mocha and chai peer dependency versions across Node.js environment components to prevent pnpm from creating multiple installations with different peer dependency hashes, which was causing TypeScript compilation errors in capsules. The changes update both node-babel-mocha and node-typescript-mocha environments to use chai@5.2.1 and mocha@11.7.1, matching the versions used in core-aspect-env.
Changes:
- Updated peer dependency versions for chai (4.3.0 → 5.2.1) and mocha (10.2.0 → 11.7.1) in
node-babel-mochaandnode-typescript-mochaenvironments - Added environment configuration entries in
.bitmapfile for multiple components to explicitly specify their test environment
Reviewed changes
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scopes/node/envs/node-babel-mocha/node-babel-mocha.bit-env.ts | Updated chai and mocha peer dependencies to versions 5.2.1 and 11.7.1 respectively |
| scopes/node/envs/node-typescript-mocha/node-typescript-mocha.bit-env.ts | Updated chai and mocha peer dependencies to versions 5.2.1 and 11.7.1 respectively |
| .bitmap | Added explicit environment configuration entries for components using node-babel-mocha and node-typescript-mocha environments |
3 tasks
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
node-babel-mochaandnode-typescript-mochaenvsRelated CR: https://bit.cloud/teambit/node/~change-requests/align-mocha-11-YQbM2C9YG
Test plan