Skip to content

Port the 48 still-excluded spec TestBed setups to standalone-component shape #4880

@Yicong-Huang

Description

@Yicong-Huang

Task Summary

Track the spec files still excluded in tsconfig.spec.json / angular.json that need their TestBed setups ported from the old NgModule (declarations: [...]) shape to the standalone-component (imports: [Standalone]) shape after #4873.

Each excluded entry needs its TestBed updated:

  • declarations: [Comp]imports: [Comp] (since Comp is now standalone)
  • Module imports the spec used to rely on (e.g., FormsModule, NzButtonModule) usually need to move into the standalone component's own imports: [] list, not the TestBed
  • Spec-only providers / dependencies stay in TestBed's providers: [...]

Status

Of the 48 specs originally captured here, all 48 have been resolved through the migration PRs (#4878, #4881, #4886, #4889, #4897, #4944, #4950).

Out of scope (tracked separately)

The following placeholder specs — files whose body is entirely commented out or only contains a license header — were never about TestBed shape; they need real test cases written against the current component/service. Each is now its own Task issue:

Out of scope (tracked under #4866)

workflow-editor.component.spec.ts is excluded for jointjs paper geometry reasons, not standalone migration. See #4866.

Definition of done

This issue can be closed once the placeholder-body issues above and #4866 are the only remaining items in the exclusion lists — which is the current state.

Task Type

  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions