Skip to content

Conversation

alan-agius4
Copy link
Collaborator

The previous jasmine_test rule from @devinfra//bazel/jasmine:jasmine.bzl was causing ENOENT errors locally when running tests. This was likely due to issues with path handling and the chdir behavior.

This change replaces the usage of @devinfra//bazel/jasmine:jasmine.bzl with @aspect_rules_jasmine//jasmine:defs.bzl. The jasmine_test macro in tools/defaults.bzl is updated to work with the new rule, including adjustments to argument passing and path handling to ensure tests can locate necessary modules like source-map-support.

This resolves the local ENOENT error and aligns with a more standard way of running jasmine tests with bazel.

The previous `jasmine_test` rule from `@devinfra//bazel/jasmine:jasmine.bzl` was causing `ENOENT` errors locally when running tests. This was likely due to issues with path handling and the `chdir` behavior.

This change replaces the usage of `@devinfra//bazel/jasmine:jasmine.bzl` with `@aspect_rules_jasmine//jasmine:defs.bzl`. The `jasmine_test` macro in `tools/defaults.bzl` is updated to work with the new rule, including adjustments to argument passing and path handling to ensure tests can locate necessary modules like `source-map-support`.

This resolves the local `ENOENT` error and aligns with a more standard way of running jasmine tests with bazel.
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Oct 20, 2025
@alan-agius4 alan-agius4 marked this pull request as ready for review October 20, 2025 09:24
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Oct 20, 2025
@alan-agius4 alan-agius4 merged commit 341057f into angular:main Oct 20, 2025
32 checks passed
@alan-agius4 alan-agius4 deleted the jasmine-bazel branch October 20, 2025 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants