-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Stop relying on interop for tests #30758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
490eae2
to
35a536d
Compare
josephperrott
requested changes
Apr 1, 2025
crisbeto
approved these changes
Apr 2, 2025
josephperrott
approved these changes
Apr 2, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
d75a425
to
6ef7c6d
Compare
Migrate all `nodejs_binary` targets to `rules_js`.
Migrates `nodejs_test` targets to `rules_js`.
In order to be able to pnpm-link first-party packages that are using `ng_package`, we technically already need our new `ng_package` rule. That rule is still WIP, so this interop layer allows for the same with the old `ng_package` rule
Sets up the pnpm workspace for first party packages, so that we can use those for cross-package references; or real integration testing.
Updates integration tests to work with the linked first-party packages.
Instead of e.g. depending on `src/cdk/testing`, we should use the first-party linked package so that npm-module imports like `@angular/cdk` still work. This is the new approach for `rules_js`. It's notably slower, but with the simplicity gained, it's an acceptable trade-off we are taking.
Introduces a new spec-bundle Karma variant that works with `rules_js`, and updates the interop to work with `rules_js` node modules.
Fixes that some remaining imports weren't updated to be relative.
…eer dep This is necessary until a new version of the animations package is published. See: angular/angular#60660
Modernizes the rule to not rely on `rules_webtesting`. Yay.
This likely is an artifact of the size tests recently removed.
Right now `.d.ts` could incorrectly contain references to shared chunk `.d.ts`. This is addressed by properly using the `bundler` module resolution— which instructs TS to respect `exports`.
The rule was replaced with our `rjs` variant.
The old `devmode` rule isn't necessary anymore and doesn't work with the real node module directories.
We now link via `postinstall` lifecycle hooks, so we don't need this anymore.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See individual commits