build(bazel): re-enable packages/upgrade/test:test_web test with static_files in ts_web_test_suite (#24214)
PR Close #24214
This commit is contained in:

committed by
Victor Berchet

parent
c17098dae6
commit
b18cf21e99
@ -20,13 +20,9 @@ ts_library(
|
||||
|
||||
ts_web_test_suite(
|
||||
name = "test_web",
|
||||
bootstrap = [
|
||||
# "//:angularjs",
|
||||
static_files = [
|
||||
"//:angularjs_scripts",
|
||||
],
|
||||
# Disable since tests need to request different AngularJS versions at
|
||||
# runtime, which is not yet supported.
|
||||
# (Related issue: https://github.com/bazelbuild/rules_typescript/issues/131)
|
||||
tags = ["manual"],
|
||||
deps = [
|
||||
":test_lib",
|
||||
],
|
||||
|
@ -28,7 +28,7 @@ export function createWithEachNg1VersionFn(setNg1: typeof setAngularJSGlobal) {
|
||||
.reduce(
|
||||
(prev, file) => prev.then(() => new Promise<void>((resolve, reject) => {
|
||||
const script = document.createElement('script');
|
||||
script.src = `base/node_modules/${file}`;
|
||||
script.src = `base/angular/node_modules/${file}`;
|
||||
script.onerror = reject;
|
||||
script.onload = () => {
|
||||
document.body.removeChild(script);
|
||||
|
Reference in New Issue
Block a user