Skip to content

feat(ng): add test subcommand and options#2619

Open
paween1980 wants to merge 1 commit intowithfig:masterfrom
paween1980:clean-branch
Open

feat(ng): add test subcommand and options#2619
paween1980 wants to merge 1 commit intowithfig:masterfrom
paween1980:clean-branch

Conversation

@paween1980
Copy link
Copy Markdown

This PR adds the missing test subcommand to the Angular CLI (ng) autocomplete specification.

Changes:

Added test subcommand to the ng spec.

Included common options for ng test such as --watch, --code-coverage, --browsers, and --include.

Added support for project name arguments when running tests.

Motivation:
Currently, the ng autocomplete spec is missing the test command, which is a core part of the Angular development workflow. Adding this improves the developer experience for Angular engineers using kiro-cli.

Testing:

Verified the new spec using Fig's local development mode (npx @withfig/autocomplete-tools dev).

Confirmed that all flags and subcommands are correctly suggested when typing ng test.

Checklist:
[x] All arguments and options are correctly defined.
[x] Follows the Conventional Commits standard.
[x] Tested locally before submitting.

@withfig-bot
Copy link
Copy Markdown
Contributor

withfig-bot commented Mar 24, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@withfig-bot
Copy link
Copy Markdown
Contributor

Overview

src/ng.ts:

Info:

Single Functions:

postProcess:

 function (out) {
    try {
      const projects = JSON.parse(out);

      return Object.entries(projects).map(
        ([projectName, details]: [string, ProjectDetails]) => ({
          name: projectName,
          description: details.projectType,
        })
      );
    } catch (e) {}
    return [];
  }

@paween1980
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@withfig-bot
Copy link
Copy Markdown
Contributor

Hello @paween1980,
thank you very much for creating a Pull Request!
Here is a small checklist to get this PR merged as quickly as possible:

  • Do all subcommands / options which take arguments include the args property (args: {})?
  • Are all options modular? E.g. -a -u -x instead of -aux
  • Have all other checks passed?

Please add a 👍 as a reaction to this comment to show that you read this.

@paween1980
Copy link
Copy Markdown
Author

Hi maintainers, the CLA Assistant check seems to be failing with:

Error: Could not update the JSON file: Not Found

It looks like a configuration issue with CLA Assistant rather than the PR itself. Could you please take a look?

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.

2 participants