Skip to content

test: add integration test to ensure all exported modules can be imported#60489

Closed
devversion wants to merge 1 commit intoangular:mainfrom
devversion:safety-test
Closed

test: add integration test to ensure all exported modules can be imported#60489
devversion wants to merge 1 commit intoangular:mainfrom
devversion:safety-test

Conversation

@devversion
Copy link
Copy Markdown
Member

This commit adds a new integration test which will help ensure that all exported @NgModule's of framework packages can be imported by users without any errors.

This test is generally useful, but with our upcoming changes with relative imports, this is a good safety-net. Relative imports could break re-exported NgModules inside NgModule's. For more details, see: angular/components#30667

Notably we don't expect any issues for framework package as re-exporting @NgModule's inside @NgModule's is seemingly a rather rare pattern for APF libraries (confirmed by Material only having like 4-5 instances).

…rted

This commit adds a new integration test which will help ensure that all
exported `@NgModule`'s of framework packages can be imported by users
without any errors.

This test is generally useful, but with our upcoming changes with
relative imports, this is a good safety-net. Relative imports could
break re-exported NgModules inside NgModule's. For more details, see:
angular/components#30667

Notably we don't expect any issues for framework package as re-exporting
`@NgModule`'s inside `@NgModule`'s is seemingly a rather rare pattern for
APF libraries (confirmed by Material only having like 4-5 instances).
@devversion devversion added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Mar 20, 2025
@devversion devversion requested a review from crisbeto March 20, 2025 14:22
@devversion devversion marked this pull request as ready for review March 20, 2025 14:22
@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 20, 2025
@alxhub
Copy link
Copy Markdown
Member

alxhub commented Mar 20, 2025

This PR was merged into the repository by commit 6890eab.

The changes were merged into the following branches: main, 19.2.x

alxhub pushed a commit that referenced this pull request Mar 20, 2025
…rted (#60489)

This commit adds a new integration test which will help ensure that all
exported `@NgModule`'s of framework packages can be imported by users
without any errors.

This test is generally useful, but with our upcoming changes with
relative imports, this is a good safety-net. Relative imports could
break re-exported NgModules inside NgModule's. For more details, see:
angular/components#30667

Notably we don't expect any issues for framework package as re-exporting
`@NgModule`'s inside `@NgModule`'s is seemingly a rather rare pattern for
APF libraries (confirmed by Material only having like 4-5 instances).

PR Close #60489
@alxhub alxhub closed this in 6890eab Mar 20, 2025
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants