Skip to content

build: prepare testing infrastructure for code splitting of core package - #60487

Closed
devversion wants to merge 1 commit into
angular:mainfrom
devversion:prepare-shared-dts-chunks
Closed

devversion wants to merge 1 commit into
angular:mainfrom
devversion:prepare-shared-dts-chunks

Conversation

@devversion

Copy link
Copy Markdown
Member

When we switch to relative imports, shared .d.ts chunks can be generated.

We need to also pull these into our mock virtual FS testing environments. Notably this does not cause a test slow-down because we are talking about very few extra .d.ts chunk files. In our experiments before, with no dts bundling, we saw test time increase from e.g. 20seconds to 100seconds. The 20s are still the same locally!

In addition, since code for definitions can now reside in shared .d.ts chunks, the language service tests need to be adjusted in cases where they assert for code definition locations in @angular/core. A new helper prepares for more code to be moved into arbitrary .d.ts files; we should simply assert the definition comes out of node_modules/@angular/core.

…ckage

When we switch to relative imports, shared `.d.ts` chunks can be
generated.

We need to also pull these into our mock virtual FS testing
environments. Notably this does not cause a test slow-down because we
are talking about very few extra `.d.ts` chunk files. In our experiments
before, with no dts bundling, we saw test time increase from e.g.
20seconds to 100seconds. The 20s are still the same locally!

In addition, since code for definitions can now reside in shared `.d.ts`
chunks, the language service tests need to be adjusted in cases where
they assert for code definition locations in `@angular/core`. A new
helper prepares for more code to be moved into arbitrary `.d.ts` files;
we should simply assert the definition comes out of
`node_modules/@angular/core`.
@angular-robot angular-robot Bot added the area: build & ci Related the build and CI infrastructure of the project label Mar 20, 2025
@ngbot ngbot Bot added this to the Backlog milestone Mar 20, 2025
@devversion
devversion requested a review from crisbeto March 20, 2025 12:31
@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 marked this pull request as ready for review March 20, 2025 12:31
@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

alxhub commented Mar 20, 2025

Copy link
Copy Markdown
Member

This PR was merged into the repository by commit e0ff321.

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

@alxhub alxhub closed this in e0ff321 Mar 20, 2025
alxhub pushed a commit that referenced this pull request Mar 20, 2025
…ckage (#60487)

When we switch to relative imports, shared `.d.ts` chunks can be
generated.

We need to also pull these into our mock virtual FS testing
environments. Notably this does not cause a test slow-down because we
are talking about very few extra `.d.ts` chunk files. In our experiments
before, with no dts bundling, we saw test time increase from e.g.
20seconds to 100seconds. The 20s are still the same locally!

In addition, since code for definitions can now reside in shared `.d.ts`
chunks, the language service tests need to be adjusted in cases where
they assert for code definition locations in `@angular/core`. A new
helper prepares for more code to be moved into arbitrary `.d.ts` files;
we should simply assert the definition comes out of
`node_modules/@angular/core`.

PR Close #60487
@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 area: build & ci Related the build and CI infrastructure of the project 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