Skip to content

@angular/build:karma builder seems to be leaving test-out artifacts in the dist directory #30713

@Bjeaurn

Description

@Bjeaurn

Command

test

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

v19

Description

It seems that the new v20 builder is either generating a lot more testing code and persisting it on the filesystem, or the cleanup phase is not being triggered correctly.

Minimal Reproduction

ng new app
ng test

Check the /dist/test-out/ folder. Do multiple runs for multiple artifacts.

Exception or Error


Your Environment

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

Angular CLI: 20.0.5
Node: 22.17.0
Package Manager: npm 11.4.2
OS: darwin arm64

Angular: 20.0.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1902.15
@angular-devkit/core         19.2.15
@angular-devkit/schematics   19.2.15
@angular/build               20.0.5
@angular/cdk                 20.0.5
@angular/cli                 20.0.5
@angular/material            20.0.5
@schematics/angular          20.0.5
rxjs                         7.8.2
typescript                   5.8.3
webpack                      5.99.9
zone.js                      0.15.1


(Still migrating to v20 for some other dependencies)

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions