Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Oct 15, 2025

This commit enhances the list_projects MCP tool by adding the unitTestFramework field to the project output. This provides a clear signal to an AI model about which testing API (e.g., Jasmine, Jest, Vitest) to use when writing or modifying unit tests for a specific project.

The detection logic handles:

  • The @angular/build:unit-test builder by inspecting its runner option.
  • Other builders by inferring the framework from the builder name (e.g., builders containing 'karma', 'jest').
  • The experimental @angular-devkit/build-angular:web-test-runner.

Additionally, the tool's description has been updated to guide the AI on how to use this new field, including instructions on how to proceed when the framework is 'unknown'.

…s tool

This commit enhances the `list_projects` MCP tool by adding the `unitTestFramework` field to the project output. This provides a clear signal to an AI model about which testing API (e.g., Jasmine, Jest, Vitest) to use when writing or modifying unit tests for a specific project.

The detection logic handles:
- The `@angular/build:unit-test` builder by inspecting its `runner` option.
- Other builders by inferring the framework from the builder name (e.g., builders containing 'karma', 'jest').
- The experimental `@angular-devkit/build-angular:web-test-runner`.

Additionally, the tool's description has been updated to guide the AI on how to use this new field, including instructions on how to proceed when the framework is 'unknown'.
@clydin clydin added the target: major This PR is targeted for the next major release label Oct 15, 2025
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @angular/cli labels Oct 15, 2025
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Oct 15, 2025
@hybrist hybrist merged commit 45024e8 into angular:main Oct 15, 2025
35 checks passed
@clydin clydin deleted the mcp/project-test-framework branch October 15, 2025 19:56
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli detected: feature PR contains a feature commit target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants