Skip to content

test(install): add e2e test for env peer deps after bit create#10218

Merged
davidfirst merged 3 commits intomasterfrom
e2e/env-peer-deps-install
Mar 9, 2026
Merged

test(install): add e2e test for env peer deps after bit create#10218
davidfirst merged 3 commits intomasterfrom
e2e/env-peer-deps-install

Conversation

@davidfirst
Copy link
Member

Add an e2e test that verifies env peer dependencies (e.g., @types/react) are properly installed when running bit create react. The test creates a react component using the default bitdev env and asserts that @types/react is present in node_modules and bit check-types passes without errors.

Covers the fix from #10215.

Verifies that env peer dependencies (e.g., @types/react) are properly
installed when creating a react component, and that check-types passes.
Covers the fix from PR #10215.
Copilot AI review requested due to automatic review settings March 6, 2026 16:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new end-to-end regression test to ensure env peer dependencies (notably @types/react) are installed correctly for a newly created React component, covering the fix from #10215.

Changes:

  • Introduces a new e2e test that runs bit create react and validates env peer deps are present in node_modules.
  • Adds a bit check-types assertion to ensure type-checking works after creation.

You can also share your feedback on Copilot code review. Take the survey.

Remove describe.only, fix stale describe title, use runCmd instead
of runWithTryCatch for stronger assertion.
Copilot AI review requested due to automatic review settings March 6, 2026 17:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


You can also share your feedback on Copilot code review. Take the survey.

@davidfirst davidfirst merged commit ab53d55 into master Mar 9, 2026
16 checks passed
@davidfirst davidfirst deleted the e2e/env-peer-deps-install branch March 9, 2026 14:03
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.

3 participants