GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — filter does not work in UnitTestTree · Issue #26000 · angular/angular-cli

filter does not work in UnitTestTree #26000

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
filter does not work in UnitTestTree#26000
Bug
Copy link
Labels
area: @angular-devkit/schematicsfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix

Description

@cheng93
cheng93
opened on Oct 10, 2023
Issue body actions

Command

generate

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

filter() does not work when applied to a UnitTestTree

I believe this is because UnitTestTree is not a HostTree

Minimal Reproduction

https://github.com/cheng93/angular-schematics-filter

run the test in the hello-world schematics

Exception or Error

Error: Tree type is not supported.

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 16.1.8
Node: 20.0.0 (Unsupported)
Package Manager: npm 9.6.4
OS: win32 x64

Angular: 16.2.8
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1601.8
@angular-devkit/core         16.1.8
@angular-devkit/schematics   16.1.8
@angular/cli                 16.1.8
@schematics/angular          16.1.8
rxjs                         7.8.1
typescript                   5.1.6
zone.js                      0.13.3

Anything else relevant?

No response

Activity

  1. clydin
    added
    type: bug/fix
    area: @angular-devkit/schematics
    on Oct 10, 2023
  2. alan-agius4
    added
    freq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarely
    severity3: broken
    on Oct 10, 2023
  3. alan-agius4
    added a commit that references this issue on Oct 27, 2026

    fix(@angular-devkit/schematics): support delegating trees in the `fil…

    This issue will close once commit 1854c17 is merged into the 'main' branch.
    1854c17
  4. alan-agius4
    closed this as completedon Oct 27, 2026
  5. alan-agius4
    added a commit that references this issue on Oct 27, 2026

    fix(@angular-devkit/schematics): support delegating trees in the `fil…

    This issue will close once commit 5094cd6 is merged into the 'main' branch.
    5094cd6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @angular-devkit/schematicsfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix

    Type

    Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.