a2ui-project / a2ui-project/a2ui

Create 1P testing utilities for Angular

Open
#1,519 1 comment 0 reactions 1 assignee Assigned to @josemontespg View on GitHub
component: angular renderer P2 type: feature/enhancement
Dominant language
TypeScript
Stars
16.4k
Forks
1.3k
Avg merge
2d 13h
Merged PRs (30d)
134

Description

Need a way to ergonomically set props on components during unit tests. This should be part of a testing public API

Something like
```
setProps(componentInstance, {
prop1: 'foo',
prop2: 42,
})
```

and setProps would take care of providing a type safe signature, also create the BoundProperty objects.

Contributor guide

Open the contributing guide

Research direction

Look for existing testing utilities in the codebase, likely under a directory like `testing/` or `src/testing/`. Understand how components are currently tested and how BoundProperty objects are created. The goal is to design and implement a `setProps` function that integrates with Angular's testing APIs and provides type safety.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.