diff --git a/docs/BAZEL.md b/docs/BAZEL.md index a447f7209b3..33bb75f25a8 100644 --- a/docs/BAZEL.md +++ b/docs/BAZEL.md @@ -105,7 +105,7 @@ Apple+Shift+D on Mac) and click on the green play icon next to the configuration ### Debugging a Karma Test -- Run test: `yarn bazel run packages/core/test:test_web_chromium` or `yarn bazel run packages/core/test:test_web_firefox` +- Run test: `yarn bazel run packages/core/test:test_web_debug` (any `karma_web_test_suite` target has a `_debug` target) - Open any browser at: [http://localhost:9876/debug.html](http://localhost:9876/debug.html) - Open the browser's DevTools to debug the tests (after, for example, having focused on specific tests via `fit` and/or `fdescribe` or having added `debugger` statements in them) @@ -274,7 +274,7 @@ e.g: `yarn bazel test packages/core/test/bundling/forms:symbol_test` #### mkdir missing If you see the following error:: ``` - + ERROR: An error occurred during the fetch of repository 'npm': Traceback (most recent call last): File "C:/users/anusername/_bazel_anusername/idexbm2i/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 618, column 15, in _yarn_install_impl @@ -286,7 +286,7 @@ Error in fail: mkdir -p _ failed: ``` The `msys64` library and associated tools (like `mkdir`) are required to build Angular. -Make sure you have `C:\msys64\usr\bin` in the "system" `PATH` rather than the "user" `PATH`. +Make sure you have `C:\msys64\usr\bin` in the "system" `PATH` rather than the "user" `PATH`. After that, a `git clean -xfd`, `yarn`, and `node scripts\build\build-packages-dist.js` should resolve this issue. diff --git a/tools/defaults.bzl b/tools/defaults.bzl index 8cc140127b8..df995ecd680 100644 --- a/tools/defaults.bzl +++ b/tools/defaults.bzl @@ -3,7 +3,7 @@ load("@rules_pkg//:pkg.bzl", "pkg_tar") load("@build_bazel_rules_nodejs//:index.bzl", _nodejs_binary = "nodejs_binary", _pkg_npm = "pkg_npm") load("@npm//@bazel/jasmine:index.bzl", _jasmine_node_test = "jasmine_node_test") -load("@npm//@bazel/concatjs:index.bzl", _concatjs_devserver = "concatjs_devserver", _karma_web_test = "karma_web_test", _karma_web_test_suite = "karma_web_test_suite") +load("@npm//@bazel/concatjs:index.bzl", _concatjs_devserver = "concatjs_devserver") load("@npm//@bazel/rollup:index.bzl", _rollup_bundle = "rollup_bundle") load("@npm//@bazel/terser:index.bzl", "terser_minified") load("@npm//@bazel/typescript:index.bzl", _ts_config = "ts_config", _ts_library = "ts_library") @@ -12,6 +12,7 @@ load("@npm//typescript:index.bzl", "tsc") load("//packages/bazel:index.bzl", _ng_module = "ng_module", _ng_package = "ng_package") load("@npm//@angular/dev-infra-private/bazel/benchmark/app_bundling:index.bzl", _app_bundle = "app_bundle") load("//tools:ng_benchmark.bzl", _ng_benchmark = "ng_benchmark") +load("@npm//@angular/dev-infra-private/bazel/karma:index.bzl", _karma_web_test = "karma_web_test", _karma_web_test_suite = "karma_web_test_suite") load("@npm//@angular/dev-infra-private/bazel/api-golden:index.bzl", _api_golden_test = "api_golden_test", _api_golden_test_npm_package = "api_golden_test_npm_package") load("@npm//@angular/dev-infra-private/bazel:extract_js_module_output.bzl", "extract_js_module_output") load("@npm//@angular/dev-infra-private/bazel/esbuild:index.bzl", _esbuild = "esbuild", _esbuild_config = "esbuild_config")