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
@jkrems jkrems 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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