From e22631f04b12960178892e751b4f8bb960ae3b56 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Fri, 31 Mar 2023 17:05:54 -0700 Subject: [PATCH] chore(6.0): remove jasmine package It has been unmaintained for a year and has been replaced by https://github.com/aspect-build/rules_jasmine/. --- .bazelrc | 4 +- .gitattributes | 1 - commitlint.config.js | 1 - docs/BUILD.bazel | 1 - docs/Built-ins.md | 1 - docs/Jasmine.md | 119 -- docs/dependencies.md | 4 +- docs/index.md | 2 - e2e/BUILD.bazel | 53 - e2e/bazel_managed_deps/.bazelignore | 1 - e2e/bazel_managed_deps/.bazelrc | 1 - e2e/bazel_managed_deps/BUILD.bazel | 14 - e2e/bazel_managed_deps/README.md | 19 - e2e/bazel_managed_deps/WORKSPACE | 45 - e2e/bazel_managed_deps/deps.spec.js | 24 - e2e/bazel_managed_deps/package.json | 11 - e2e/bazel_managed_deps/yarn.lock | 477 ------ e2e/coverage/.bazelignore | 3 - e2e/coverage/.bazelrc | 1 - e2e/coverage/BUILD.bazel | 23 - e2e/coverage/WORKSPACE | 43 - e2e/coverage/coverage.spec.js | 10 - e2e/coverage/coverage_source.ts | 7 - e2e/coverage/fail.spec.js | 3 - e2e/coverage/package.json | 12 - e2e/coverage/tsconfig.json | 8 - e2e/coverage/yarn.lock | 1288 ----------------- e2e/jasmine/.bazelignore | 3 - e2e/jasmine/.bazelrc | 1 - e2e/jasmine/BUILD.bazel | 20 - e2e/jasmine/WORKSPACE | 36 - e2e/jasmine/jasmine_shared_env_bootstrap.js | 19 - e2e/jasmine/jasmine_shared_env_test.spec.js | 18 - e2e/jasmine/package.json | 15 - e2e/jasmine/test.spec.js | 5 - e2e/jasmine/yarn.lock | 489 ------- examples/BUILD.bazel | 11 - examples/kotlin/BUILD.bazel | 17 +- examples/nestjs/src/BUILD.bazel | 8 - examples/protobufjs/BUILD.bazel | 6 - examples/vendored_node_and_yarn/.bazelignore | 3 - examples/vendored_node_and_yarn/.bazelrc | 5 - examples/vendored_node_and_yarn/BUILD.bazel | 6 - examples/vendored_node_and_yarn/README.md | 6 - examples/vendored_node_and_yarn/WORKSPACE | 71 - examples/vendored_node_and_yarn/package.json | 12 - .../toolchains/BUILD.bazel | 42 - .../vendored_node_and_yarn/vendored.spec.js | 5 - examples/vendored_node_and_yarn/yarn.lock | 473 ------ .../bazel_integration_test.bzl | 2 - internal/common/test/BUILD.bazel | 11 - internal/linker/test/BUILD.bazel | 9 - internal/linker/test/local/BUILD.bazel | 8 - internal/linker/test/multi_linker/BUILD.bazel | 27 - .../linker/test/workspace_link/BUILD.bazel | 11 - internal/node/node.bzl | 1 - internal/node/test/BUILD.bazel | 37 - internal/npm_install/test/BUILD.bazel | 131 -- .../npm_install/test/npm_packages/BUILD.bazel | 7 - internal/pkg_npm/test/BUILD.bazel | 16 - internal/pkg_web/BUILD.bazel | 17 - internal/pkg_web/test/BUILD.bazel | 9 +- internal/pkg_web/test2/BUILD.bazel | 15 +- packages/index.bzl | 1 - packages/jasmine/BUILD.bazel | 90 -- packages/jasmine/docs_test.js | 6 - packages/jasmine/index.bzl | 27 - packages/jasmine/index.js | 20 - packages/jasmine/jasmine_node_test.bzl | 170 --- packages/jasmine/jasmine_runner.js | 224 --- packages/jasmine/package.json | 36 - packages/jasmine/private/BUILD.bazel | 10 - packages/jasmine/private/index.bzl | 13 - packages/jasmine/test/BUILD.bazel | 249 ---- packages/jasmine/test/args_test.js | 13 - packages/jasmine/test/bootstrap.js | 1 - packages/jasmine/test/bootstrap_fail.js | 1 - packages/jasmine/test/coverage.spec.js | 10 - packages/jasmine/test/coverage_source.ts | 7 - .../jasmine/test/coverage_source_uncovered.ts | 6 - packages/jasmine/test/dynamic_import.js | 3 - packages/jasmine/test/esm/BUILD.bazel | 6 - .../jasmine/test/esm/jasmine_import.spec.mjs | 6 - packages/jasmine/test/fail.spec.js | 3 - packages/jasmine/test/failing_sharded_test.js | 8 - packages/jasmine/test/filtering_test.js | 15 - packages/jasmine/test/foo.spec.cjs | 5 - packages/jasmine/test/foo.spec.js | 5 - packages/jasmine/test/foo.spec.mjs | 5 - packages/jasmine/test/foo.test.cjs | 5 - packages/jasmine/test/foo.test.js | 5 - packages/jasmine/test/foo.test.mjs | 5 - packages/jasmine/test/foo_spec.cjs | 5 - packages/jasmine/test/foo_spec.js | 5 - packages/jasmine/test/foo_spec.mjs | 5 - packages/jasmine/test/foo_test.cjs | 5 - packages/jasmine/test/foo_test.js | 5 - packages/jasmine/test/foo_test.mjs | 5 - .../jasmine/test/generated_require.spec.js | 10 - .../jasmine/test/generated_runfiles.spec.js | 12 - packages/jasmine/test/sharded_test.js | 26 - packages/jasmine/test/stack.spec.js | 55 - packages/jasmine/test/test.json | 1 - packages/jasmine/test/test_config_file.js | 6 - packages/jasmine/test/test_config_file.json | 6 - .../rollup/test/code_splitting/BUILD.bazel | 8 - .../test/multiple_entry_points/BUILD.bazel | 8 - packages/rollup/test/sourcemaps/BUILD.bazel | 8 - .../rollup/test/workspace_link/BUILD.bazel | 7 - packages/runfiles/test/BUILD.bazel | 12 - .../typescript/test/ts_project/b/BUILD.bazel | 7 - .../test/ts_project/data/BUILD.bazel | 6 - 112 files changed, 7 insertions(+), 4898 deletions(-) delete mode 100755 docs/Jasmine.md delete mode 100644 e2e/bazel_managed_deps/.bazelignore delete mode 100644 e2e/bazel_managed_deps/.bazelrc delete mode 100644 e2e/bazel_managed_deps/BUILD.bazel delete mode 100644 e2e/bazel_managed_deps/README.md delete mode 100644 e2e/bazel_managed_deps/WORKSPACE delete mode 100644 e2e/bazel_managed_deps/deps.spec.js delete mode 100644 e2e/bazel_managed_deps/package.json delete mode 100644 e2e/bazel_managed_deps/yarn.lock delete mode 100644 e2e/coverage/.bazelignore delete mode 100644 e2e/coverage/.bazelrc delete mode 100644 e2e/coverage/BUILD.bazel delete mode 100644 e2e/coverage/WORKSPACE delete mode 100644 e2e/coverage/coverage.spec.js delete mode 100644 e2e/coverage/coverage_source.ts delete mode 100644 e2e/coverage/fail.spec.js delete mode 100644 e2e/coverage/package.json delete mode 100644 e2e/coverage/tsconfig.json delete mode 100644 e2e/coverage/yarn.lock delete mode 100644 e2e/jasmine/.bazelignore delete mode 100644 e2e/jasmine/.bazelrc delete mode 100644 e2e/jasmine/BUILD.bazel delete mode 100644 e2e/jasmine/WORKSPACE delete mode 100644 e2e/jasmine/jasmine_shared_env_bootstrap.js delete mode 100644 e2e/jasmine/jasmine_shared_env_test.spec.js delete mode 100644 e2e/jasmine/package.json delete mode 100644 e2e/jasmine/test.spec.js delete mode 100644 e2e/jasmine/yarn.lock delete mode 100644 examples/vendored_node_and_yarn/.bazelignore delete mode 100644 examples/vendored_node_and_yarn/.bazelrc delete mode 100644 examples/vendored_node_and_yarn/BUILD.bazel delete mode 100644 examples/vendored_node_and_yarn/README.md delete mode 100644 examples/vendored_node_and_yarn/WORKSPACE delete mode 100644 examples/vendored_node_and_yarn/package.json delete mode 100644 examples/vendored_node_and_yarn/toolchains/BUILD.bazel delete mode 100644 examples/vendored_node_and_yarn/vendored.spec.js delete mode 100644 examples/vendored_node_and_yarn/yarn.lock delete mode 100644 packages/jasmine/BUILD.bazel delete mode 100644 packages/jasmine/docs_test.js delete mode 100644 packages/jasmine/index.bzl delete mode 100644 packages/jasmine/index.js delete mode 100644 packages/jasmine/jasmine_node_test.bzl delete mode 100644 packages/jasmine/jasmine_runner.js delete mode 100644 packages/jasmine/package.json delete mode 100644 packages/jasmine/private/BUILD.bazel delete mode 100644 packages/jasmine/private/index.bzl delete mode 100644 packages/jasmine/test/BUILD.bazel delete mode 100644 packages/jasmine/test/args_test.js delete mode 100644 packages/jasmine/test/bootstrap.js delete mode 100644 packages/jasmine/test/bootstrap_fail.js delete mode 100644 packages/jasmine/test/coverage.spec.js delete mode 100644 packages/jasmine/test/coverage_source.ts delete mode 100644 packages/jasmine/test/coverage_source_uncovered.ts delete mode 100644 packages/jasmine/test/dynamic_import.js delete mode 100644 packages/jasmine/test/esm/BUILD.bazel delete mode 100644 packages/jasmine/test/esm/jasmine_import.spec.mjs delete mode 100644 packages/jasmine/test/fail.spec.js delete mode 100644 packages/jasmine/test/failing_sharded_test.js delete mode 100644 packages/jasmine/test/filtering_test.js delete mode 100644 packages/jasmine/test/foo.spec.cjs delete mode 100644 packages/jasmine/test/foo.spec.js delete mode 100644 packages/jasmine/test/foo.spec.mjs delete mode 100644 packages/jasmine/test/foo.test.cjs delete mode 100644 packages/jasmine/test/foo.test.js delete mode 100644 packages/jasmine/test/foo.test.mjs delete mode 100644 packages/jasmine/test/foo_spec.cjs delete mode 100644 packages/jasmine/test/foo_spec.js delete mode 100644 packages/jasmine/test/foo_spec.mjs delete mode 100644 packages/jasmine/test/foo_test.cjs delete mode 100644 packages/jasmine/test/foo_test.js delete mode 100644 packages/jasmine/test/foo_test.mjs delete mode 100644 packages/jasmine/test/generated_require.spec.js delete mode 100644 packages/jasmine/test/generated_runfiles.spec.js delete mode 100644 packages/jasmine/test/sharded_test.js delete mode 100644 packages/jasmine/test/stack.spec.js delete mode 100644 packages/jasmine/test/test.json delete mode 100644 packages/jasmine/test/test_config_file.js delete mode 100644 packages/jasmine/test/test_config_file.json diff --git a/.bazelrc b/.bazelrc index 751242c0e0..d6fd2b1518 100644 --- a/.bazelrc +++ b/.bazelrc @@ -5,8 +5,8 @@ import %workspace%/common.bazelrc # This lets us glob() up all the files inside the examples to make them inputs to tests # To update these lines, just run `yarn bazel:update-deleted-packages` # (Note, we cannot use common --deleted_packages because the bazel version command doesn't support it) -build --deleted_packages=e2e/bazel_managed_deps,e2e/bazel_run_chdir,e2e/bazel_run_chdir/subfolder,e2e/coverage,e2e/fine_grained_symlinks,e2e/jasmine,e2e/linker_disabled_regression,e2e/linker_disabled_regression/subdir,e2e/node_loader_preserve_symlinks,e2e/nodejs_host,e2e/nodejs_image,e2e/nodejs_image/foolib,e2e/packages,e2e/symlinked_node_modules_npm,e2e/symlinked_node_modules_yarn,e2e/webapp,examples/angular,examples/angular/src,examples/angular/src/app,examples/angular/src/app/hello-world,examples/angular/src/app/home,examples/angular/src/app/todos,examples/angular/src/app/todos/reducers,examples/angular/src/assets,examples/angular/src/lib/shorten,examples/angular/src/shared/material,examples/angular/tools,examples/angular_bazel_architect,examples/angular_bazel_architect/projects/frontend-lib,examples/app,examples/app/styles,examples/app/test,examples/closure,examples/create-react-app,examples/from_source,examples/jest,examples/jest/ts,examples/jest/ts/src,examples/jest/ts/test,examples/kotlin,examples/nestjs,examples/nestjs/src,examples/parcel,examples/protobufjs,examples/react_webpack,examples/toolchain,examples/vendored_node_and_yarn,examples/vendored_node_and_yarn/toolchains,examples/vue,examples/vue/src,examples/vue/src/components/HelloWorld,examples/web_testing,examples/webapp,examples/worker -query --deleted_packages=e2e/bazel_managed_deps,e2e/bazel_run_chdir,e2e/bazel_run_chdir/subfolder,e2e/coverage,e2e/fine_grained_symlinks,e2e/jasmine,e2e/linker_disabled_regression,e2e/linker_disabled_regression/subdir,e2e/node_loader_preserve_symlinks,e2e/nodejs_host,e2e/nodejs_image,e2e/nodejs_image/foolib,e2e/packages,e2e/symlinked_node_modules_npm,e2e/symlinked_node_modules_yarn,e2e/webapp,examples/angular,examples/angular/src,examples/angular/src/app,examples/angular/src/app/hello-world,examples/angular/src/app/home,examples/angular/src/app/todos,examples/angular/src/app/todos/reducers,examples/angular/src/assets,examples/angular/src/lib/shorten,examples/angular/src/shared/material,examples/angular/tools,examples/angular_bazel_architect,examples/angular_bazel_architect/projects/frontend-lib,examples/app,examples/app/styles,examples/app/test,examples/closure,examples/create-react-app,examples/from_source,examples/jest,examples/jest/ts,examples/jest/ts/src,examples/jest/ts/test,examples/kotlin,examples/nestjs,examples/nestjs/src,examples/parcel,examples/protobufjs,examples/react_webpack,examples/toolchain,examples/vendored_node_and_yarn,examples/vendored_node_and_yarn/toolchains,examples/vue,examples/vue/src,examples/vue/src/components/HelloWorld,examples/web_testing,examples/webapp,examples/worker +build --deleted_packages=e2e/bazel_run_chdir,e2e/bazel_run_chdir/subfolder,e2e/fine_grained_symlinks,e2e/linker_disabled_regression,e2e/linker_disabled_regression/subdir,e2e/node_loader_preserve_symlinks,e2e/nodejs_host,e2e/nodejs_image,e2e/nodejs_image/foolib,e2e/packages,e2e/symlinked_node_modules_npm,e2e/symlinked_node_modules_yarn,e2e/webapp,examples/angular,examples/angular/src,examples/angular/src/app,examples/angular/src/app/hello-world,examples/angular/src/app/home,examples/angular/src/app/todos,examples/angular/src/app/todos/reducers,examples/angular/src/assets,examples/angular/src/lib/shorten,examples/angular/src/shared/material,examples/angular/tools,examples/angular_bazel_architect,examples/angular_bazel_architect/projects/frontend-lib,examples/app,examples/app/styles,examples/app/test,examples/closure,examples/create-react-app,examples/from_source,examples/jest,examples/jest/ts,examples/jest/ts/src,examples/jest/ts/test,examples/kotlin,examples/nestjs,examples/nestjs/src,examples/parcel,examples/protobufjs,examples/react_webpack,examples/toolchain,examples/vue,examples/vue/src,examples/vue/src/components/HelloWorld,examples/web_testing,examples/webapp,examples/worker +query --deleted_packages=e2e/bazel_run_chdir,e2e/bazel_run_chdir/subfolder,e2e/fine_grained_symlinks,e2e/linker_disabled_regression,e2e/linker_disabled_regression/subdir,e2e/node_loader_preserve_symlinks,e2e/nodejs_host,e2e/nodejs_image,e2e/nodejs_image/foolib,e2e/packages,e2e/symlinked_node_modules_npm,e2e/symlinked_node_modules_yarn,e2e/webapp,examples/angular,examples/angular/src,examples/angular/src/app,examples/angular/src/app/hello-world,examples/angular/src/app/home,examples/angular/src/app/todos,examples/angular/src/app/todos/reducers,examples/angular/src/assets,examples/angular/src/lib/shorten,examples/angular/src/shared/material,examples/angular/tools,examples/angular_bazel_architect,examples/angular_bazel_architect/projects/frontend-lib,examples/app,examples/app/styles,examples/app/test,examples/closure,examples/create-react-app,examples/from_source,examples/jest,examples/jest/ts,examples/jest/ts/src,examples/jest/ts/test,examples/kotlin,examples/nestjs,examples/nestjs/src,examples/parcel,examples/protobufjs,examples/react_webpack,examples/toolchain,examples/vue,examples/vue/src,examples/vue/src/components/HelloWorld,examples/web_testing,examples/webapp,examples/worker # Mock versioning command to test the --stamp behavior build --workspace_status_command="echo BUILD_SCM_VERSION 1.2.3" diff --git a/.gitattributes b/.gitattributes index f2db881a76..987d7d9980 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,4 @@ docs/Built-ins.md linguist-generated=true -docs/Jasmine.md linguist-generated=true docs/Providers.md linguist-generated=true docs/Rollup.md linguist-generated=true docs/TypeScript.md linguist-generated=true diff --git a/commitlint.config.js b/commitlint.config.js index e048720232..d5f865babe 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -9,7 +9,6 @@ module.exports = { 'builtin', 'create', 'examples', - 'jasmine', 'rollup', 'runfiles', 'terser', diff --git a/docs/BUILD.bazel b/docs/BUILD.bazel index 2aaece8cf9..aba315ded6 100644 --- a/docs/BUILD.bazel +++ b/docs/BUILD.bazel @@ -62,7 +62,6 @@ stardoc( _READMES = { "Built-ins": "//docs:builtins.md_", "Core": "//docs:core.md_", - "Jasmine": "//packages/jasmine:README.md", "Providers": "//docs:providers.md_", "Rollup": "//packages/rollup:README.md", } diff --git a/docs/Built-ins.md b/docs/Built-ins.md index 3213304938..87bc2966ae 100755 --- a/docs/Built-ins.md +++ b/docs/Built-ins.md @@ -263,7 +263,6 @@ https://github.com/angular/angular/blob/master/tools/ts-api-guardian/index.bzl If you just want to run a standard test using a test runner from npm, use the generated *_test target created by npm_install/yarn_install, such as `mocha_test`. -Some test runners like Jasmine have custom rules with added features, e.g. `jasmine_node_test`. By default, Bazel runs tests with a working directory set to your workspace root. Use the `chdir` attribute to change the working directory before the program starts. diff --git a/docs/Jasmine.md b/docs/Jasmine.md deleted file mode 100755 index bf4a4b8048..0000000000 --- a/docs/Jasmine.md +++ /dev/null @@ -1,119 +0,0 @@ - - -# Jasmine rules for Bazel - -The Jasmine rules run tests under the Jasmine framework with Bazel. - -## Installation - -Add the `@bazel/jasmine` npm package to your `devDependencies` in `package.json`. - - -## jasmine_node_test - -**USAGE** - -
-jasmine_node_test(name, srcs, data, deps, expected_exit_code, tags, config_file, use_direct_specs,
-                  jasmine, jasmine_entry_point, kwargs)
-
- -Runs tests in NodeJS using the Jasmine test runner. - -Detailed XML test results are found in the standard `bazel-testlogs` -directory. This may be symlinked in your workspace. -See https://docs.bazel.build/versions/main/output_directories.html - -To debug the test, see debugging notes in `nodejs_test`. - - -**PARAMETERS** - - -

name

- -Name of the resulting label - - - -

srcs

- -JavaScript source files containing Jasmine specs - -Defaults to `[]` - -

data

- -Runtime dependencies which will be loaded while the test executes - -Defaults to `[]` - -

deps

- -Other targets which produce JavaScript, such as ts_project - -Defaults to `[]` - -

expected_exit_code

- -The expected exit code for the test. - -Defaults to `0` - -

tags

- -Bazel tags applied to test - -Defaults to `[]` - -

config_file

- -(experimental) label of a file containing Jasmine JSON config. - -Note that not all configuration options are honored, and -we expect some strange feature interations. -For example, the filter for which files are instrumented for -code coverage doesn't understand the spec_files setting in the config. - -See https://jasmine.github.io/setup/nodejs.html#configuration - -Defaults to `None` - -

use_direct_specs

- -Limits the list of specs added to the execution (test suite) to direct sources. - -Note that this is a bug fix opt-in flag, which will be the default -behavior in the next major release. - -More info: https://github.com/bazelbuild/rules_nodejs/pull/2576 - -Defaults to `None` - -

jasmine

- -A label providing the `@bazel/jasmine` npm dependency. -Intended for internal use only. - -Defaults to `None` - -

jasmine_entry_point

- -A label providing the `@bazel/jasmine` entry point. -This is a custom wrapper which adds features like sharding and ibazel support. -Intended for internal use only. - -Defaults to `None` - -

kwargs

- -Remaining arguments are passed to the test rule - - - - diff --git a/docs/dependencies.md b/docs/dependencies.md index 34f7a75e15..5cfdedb9c8 100644 --- a/docs/dependencies.md +++ b/docs/dependencies.md @@ -135,11 +135,11 @@ nodejs_binary( In this case, the `bar` nodejs_binary depends only the `foo` and `baz` npm packages and all of their transitive deps. -For other rules such as `jasmine_node_test`, fine grained +For other rules fine grained npm dependencies are specified in the `deps` attribute: ```python -jasmine_node_test( +nodejs_test( name = "test", ... deps = [ diff --git a/docs/index.md b/docs/index.md index a119e43be8..1f38c250a3 100644 --- a/docs/index.md +++ b/docs/index.md @@ -44,10 +44,8 @@ It also supports running Node.js programs and has a number of useful rules. This is required when rules have JavaScript code which wants to `require` from peerDependency packages, since the node resolution algorithm requires the callsite of `require` to be in the node_modules tree. - - [Jasmine](Jasmine.md) - [Labs](Labs.md) - [Rollup](Rollup.md) - - [Terser](Terser.md) - [TypeScript](TypeScript.md) There are also numerous [examples](examples.md) diff --git a/e2e/BUILD.bazel b/e2e/BUILD.bazel index 80e419d0e5..45e73e586e 100644 --- a/e2e/BUILD.bazel +++ b/e2e/BUILD.bazel @@ -14,35 +14,6 @@ load(":test.bzl", "e2e_integration_test") -e2e_integration_test( - name = "e2e_bazel_managed_deps", - npm_packages = { - "//packages/jasmine:npm_package": "@bazel/jasmine", - }, - # TODO: figure out why this fails on Windows since setting - # symlink_node_modules to False in the test WORKSPACE - tags = ["no-bazelci-windows"], -) - -e2e_integration_test( - name = "e2e_coverage", - bazel_commands = [ - "info", - "coverage ...", - ], - npm_packages = { - "//packages/jasmine:npm_package": "@bazel/jasmine", - }, - # Coverage not working on Windows. Looks like a bazel issue. - # ==================== Test output for //:coverage_test: - # ERROR(tools/test/windows/tw.cc:1262) ERROR: src/main/native/windows/process.cc(199): CreateProcessW("C:\users\b\_bazel_b\tpt6yasm\execroot\e2e_coverage\bazel-out\x64_windows-fastbuild\bin\coverage_test.bat.runfiles\bazel_tools\tools\test\collect_coverage.sh" ./coverage_test.bat): The system cannot find the file specified. - # (error: 2) - # ERROR(tools/test/windows/tw.cc:1419) Failed to start test process (arg: C:\users\b\_bazel_b\tpt6yasm\execroot\e2e_coverage\bazel-out\x64_windows-fastbuild\bin\coverage_test.bat.runfiles\bazel_tools\tools\test\collect_coverage.sh) - tags = [ - "no-bazelci-windows", - ], -) - e2e_integration_test( name = "e2e_fine_grained_symlinks", # TODO: figure out why this fails on Windows since setting @@ -50,30 +21,6 @@ e2e_integration_test( tags = ["no-bazelci-windows"], ) -[e2e_integration_test( - name = "e2e_jasmine_%s" % jasmine_version.replace(".", "_"), - npm_packages = { - "//packages/jasmine:npm_package": "@bazel/jasmine", - }, - # use these package.json packages instead - package_json_substitutions = { - "jasmine": jasmine_version, - "jasmine-core": jasmine_version, - }, - # TODO: figure out why this fails on Windows since setting - # symlink_node_modules to False in the test WORKSPACE - tags = ["no-bazelci-windows"], - workspace_root = "jasmine", -) for jasmine_version in [ - # TODO(6.0): remove old API tests - # Old API - "2.99.x", - "3.9.x", - "3.10.x", - # New API - "4.0.x", -]] - e2e_integration_test( name = "e2e_node_loader_preserve_symlinks", # TODO: figure out why this fails on Windows since setting diff --git a/e2e/bazel_managed_deps/.bazelignore b/e2e/bazel_managed_deps/.bazelignore deleted file mode 100644 index b512c09d47..0000000000 --- a/e2e/bazel_managed_deps/.bazelignore +++ /dev/null @@ -1 +0,0 @@ -node_modules \ No newline at end of file diff --git a/e2e/bazel_managed_deps/.bazelrc b/e2e/bazel_managed_deps/.bazelrc deleted file mode 100644 index 3431057af6..0000000000 --- a/e2e/bazel_managed_deps/.bazelrc +++ /dev/null @@ -1 +0,0 @@ -import %workspace%/../../common.bazelrc diff --git a/e2e/bazel_managed_deps/BUILD.bazel b/e2e/bazel_managed_deps/BUILD.bazel deleted file mode 100644 index a93cfe4870..0000000000 --- a/e2e/bazel_managed_deps/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test") - -# Test what happens when only certain NPM packages are in our dependencies. -# These packages and their dependencies are copied to the execroot, but -# the rest are not. -jasmine_node_test( - name = "fine_grained_test", - srcs = glob(["*.spec.js"]), - data = ["@npm//:bin_files"], - deps = [ - "@npm//jasmine", - "@npm//typescript", - ], -) diff --git a/e2e/bazel_managed_deps/README.md b/e2e/bazel_managed_deps/README.md deleted file mode 100644 index 451d685d4a..0000000000 --- a/e2e/bazel_managed_deps/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# Fine-grained dependencies - -Declaring the entire `node_modules` directory as an input to every nodejs action -has performance problems. When using local sandboxing, every file is set up in -the kernel container for the sandboxed disk, this is slow on Mac. With remote -execution, we guarantee these files all need to be copied to the worker machine. - -Instead, we can declare individual npm packages as dependencies, e.g.: -``` -nodejs_binary( - name = "fast", - data = ["@npm//jasmine"] -) -``` - -and only the contents of `node_modules/jasmine/` will be copied to workers. - -See design doc: -https://docs.google.com/document/d/1AfjHMLVyE_vYwlHSK7k7yW_IIGppSxsQtPm9PTr1xEo/preview diff --git a/e2e/bazel_managed_deps/WORKSPACE b/e2e/bazel_managed_deps/WORKSPACE deleted file mode 100644 index 29363db144..0000000000 --- a/e2e/bazel_managed_deps/WORKSPACE +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2019 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -workspace(name = "e2e_bazel_managed_deps") - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "build_bazel_rules_nodejs", - sha256 = "94070eff79305be05b7699207fbac5d2608054dd53e6109f7d00d923919ff45a", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.2/rules_nodejs-5.8.2.tar.gz"], -) - -load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") - -build_bazel_rules_nodejs_dependencies() - -load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") - -yarn_install( - name = "npm", - exports_directories_only = False, - manual_build_file_contents = """ -filegroup( - name = "bin_files", - srcs = [ - "node_modules/.bin/jasmine", - "node_modules/.bin/tsc", - "node_modules/.bin/tsserver", - ], -)""", - package_json = "//:package.json", - yarn_lock = "//:yarn.lock", -) diff --git a/e2e/bazel_managed_deps/deps.spec.js b/e2e/bazel_managed_deps/deps.spec.js deleted file mode 100644 index 6793348432..0000000000 --- a/e2e/bazel_managed_deps/deps.spec.js +++ /dev/null @@ -1,24 +0,0 @@ -describe('dependencies', () => { - it('should get the typescript library', () => { - const ts = require('typescript'); - expect(ts.version).toBe('3.0.1'); - }); - - it(`should resolve transitive dependencies - Note that jasmine-core is not listed in our deps[] - but it is a transitive dependency of jasmine, which is in our deps.`, - () => { - require('jasmine-core'); - }); - - it('.bin files should be in runfiles via @npm//:bin_files data dep', () => { - const files = ['jasmine', 'tsc', 'tsserver']; - for (const f of files) { - try { - expect(!!require.resolve(`.bin/${f}`)).toBeTruthy(); - } catch (_) { - fail(`.bin/${f} not resolved`); - } - } - }); -}); diff --git a/e2e/bazel_managed_deps/package.json b/e2e/bazel_managed_deps/package.json deleted file mode 100644 index 6a7a66e30e..0000000000 --- a/e2e/bazel_managed_deps/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "description": "runtime dependencies for bazel_managed_deps example", - "devDependencies": { - "@bazel/jasmine": "^5.8.1", - "jasmine": "^3.5.0", - "typescript": "^3.0.1" - }, - "scripts": { - "test": "bazel test ..." - } -} diff --git a/e2e/bazel_managed_deps/yarn.lock b/e2e/bazel_managed_deps/yarn.lock deleted file mode 100644 index bda6262157..0000000000 --- a/e2e/bazel_managed_deps/yarn.lock +++ /dev/null @@ -1,477 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@bazel/jasmine@^5.8.1": - version "5.8.1" - resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-5.8.1.tgz#c549f10806474ff742f37544733fbfdccf78ba66" - integrity sha512-052veW5EbJRH+5hL4l9Sf99bTmdKQ5WXXMF0QiBOZcA3ZHYMAaKfYNO+brutiWoX6FrBloiskLrMzF8OiHBqyw== - dependencies: - c8 "~7.5.0" - jasmine-reporters "~2.5.0" - -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== - -"@istanbuljs/schema@^0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" - integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== - -"@types/color-name@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" - integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== - -"@types/is-windows@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/is-windows/-/is-windows-1.0.0.tgz#1011fa129d87091e2f6faf9042d6704cdf2e7be0" - integrity sha512-tJ1rq04tGKuIJoWIH0Gyuwv4RQ3+tIu7wQrC0MV47raQ44kIzXSSFKfrxFUOWVRvesoF7mrTqigXmqoZJsXwTg== - -"@types/istanbul-lib-coverage@^2.0.1": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762" - integrity sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw== - -"@xmldom/xmldom@^0.7.3": - version "0.7.5" - resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.5.tgz#09fa51e356d07d0be200642b0e4f91d8e6dd408d" - integrity sha512-V3BIhmY36fXZ1OtVcI9W+FxQqxVLsPKcNjWigIaa81dLC9IolJl5Mt4Cvhmr0flUnjSpTdrbMTSbXqYqV5dT6A== - -ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== - -ansi-styles@^4.0.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359" - integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== - dependencies: - "@types/color-name" "^1.1.1" - color-convert "^2.0.1" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -c8@~7.5.0: - version "7.5.0" - resolved "https://registry.yarnpkg.com/c8/-/c8-7.5.0.tgz#a69439ab82848f344a74bb25dc5dd4e867764481" - integrity sha512-GSkLsbvDr+FIwjNSJ8OwzWAyuznEYGTAd1pzb/Kr0FMLuV4vqYJTyjboDTwmlUNAG6jAU3PFWzqIdKrOt1D8tw== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@istanbuljs/schema" "^0.1.2" - find-up "^5.0.0" - foreground-child "^2.0.0" - furi "^2.0.0" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-report "^3.0.0" - istanbul-reports "^3.0.2" - rimraf "^3.0.0" - test-exclude "^6.0.0" - v8-to-istanbul "^7.1.0" - yargs "^16.0.0" - yargs-parser "^20.0.0" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -convert-source-map@^1.6.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" - integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== - dependencies: - safe-buffer "~5.1.1" - -cross-spawn@^7.0.0: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -foreground-child@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-2.0.0.tgz#71b32800c9f15aa8f2f83f4a6bd9bff35d861a53" - integrity sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA== - dependencies: - cross-spawn "^7.0.0" - signal-exit "^3.0.2" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= - -furi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/furi/-/furi-2.0.0.tgz#13d85826a1af21acc691da6254b3888fc39f0b4a" - integrity sha512-uKuNsaU0WVaK/vmvj23wW1bicOFfyqSsAIH71bRZx8kA4Xj+YCHin7CJKJJjkIsmxYaPFLk9ljmjEyB7xF7WvQ== - dependencies: - "@types/is-windows" "^1.0.0" - is-windows "^1.0.2" - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -glob@^7.1.3: - version "7.1.4" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" - integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.4: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= - -istanbul-lib-coverage@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz#f5944a37c70b550b02a78a5c3b2055b280cec8ec" - integrity sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg== - -istanbul-lib-report@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" - integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^3.0.0" - supports-color "^7.1.0" - -istanbul-reports@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.0.2.tgz#d593210e5000683750cb09fc0644e4b6e27fd53b" - integrity sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -jasmine-core@~3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.5.0.tgz#132c23e645af96d85c8bca13c8758b18429fc1e4" - integrity sha512-nCeAiw37MIMA9w9IXso7bRaLl+c/ef3wnxsoSAlYrzS+Ot0zTG6nU8G/cIfGkqpkjX2wNaIW9RFG0TwIFnG6bA== - -jasmine-reporters@~2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/jasmine-reporters/-/jasmine-reporters-2.5.0.tgz#f9e2e0f82aaa2e07e8d553be56457efe0fd8b39e" - integrity sha512-J69peyTR8j6SzvIPP6aO1Y00wwCqXuIvhwTYvE/di14roCf6X3wDZ4/cKGZ2fGgufjhP2FKjpgrUIKjwau4e/Q== - dependencies: - "@xmldom/xmldom" "^0.7.3" - mkdirp "^1.0.4" - -jasmine@^3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-3.5.0.tgz#7101eabfd043a1fc82ac24e0ab6ec56081357f9e" - integrity sha512-DYypSryORqzsGoMazemIHUfMkXM7I7easFaxAvNM3Mr6Xz3Fy36TupTrAOxZWN8MVKEU5xECv22J4tUQf3uBzQ== - dependencies: - glob "^7.1.4" - jasmine-core "~3.5.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -make-dir@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== - dependencies: - brace-expansion "^1.1.7" - -mkdirp@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" - integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= - dependencies: - wrappy "1" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -rimraf@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -semver@^6.0.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -signal-exit@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= - -source-map@^0.7.3: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" - integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" - -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== - dependencies: - ansi-regex "^5.0.0" - -supports-color@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" - integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== - dependencies: - has-flag "^4.0.0" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - -typescript@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.1.tgz#43738f29585d3a87575520a4b93ab6026ef11fdb" - -v8-to-istanbul@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz#5b95cef45c0f83217ec79f8fc7ee1c8b486aee07" - integrity sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - -y18n@^5.0.5: - version "5.0.5" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18" - integrity sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg== - -yargs-parser@^20.0.0, yargs-parser@^20.2.2: - version "20.2.4" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" - integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== - -yargs@^16.0.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== diff --git a/e2e/coverage/.bazelignore b/e2e/coverage/.bazelignore deleted file mode 100644 index 6924375195..0000000000 --- a/e2e/coverage/.bazelignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -dist -bazel-out diff --git a/e2e/coverage/.bazelrc b/e2e/coverage/.bazelrc deleted file mode 100644 index 3431057af6..0000000000 --- a/e2e/coverage/.bazelrc +++ /dev/null @@ -1 +0,0 @@ -import %workspace%/../../common.bazelrc diff --git a/e2e/coverage/BUILD.bazel b/e2e/coverage/BUILD.bazel deleted file mode 100644 index 094f0e26bc..0000000000 --- a/e2e/coverage/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test") -load("@npm//@bazel/typescript:index.bzl", "ts_project") - -ts_project( - name = "coverage_test_srcs", - srcs = ["coverage_source.ts"], -) - -jasmine_node_test( - name = "coverage_test", - srcs = [ - "coverage.spec.js", - ":coverage_test_srcs", - ], -) - -# Verify that the error code is propogated out from a failing spec -# when coverage is on -jasmine_node_test( - name = "fail_test", - srcs = ["fail.spec.js"], - expected_exit_code = 3, -) diff --git a/e2e/coverage/WORKSPACE b/e2e/coverage/WORKSPACE deleted file mode 100644 index 90797f489c..0000000000 --- a/e2e/coverage/WORKSPACE +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 2017 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -workspace(name = "e2e_coverage") - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "build_bazel_rules_nodejs", - sha256 = "94070eff79305be05b7699207fbac5d2608054dd53e6109f7d00d923919ff45a", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.2/rules_nodejs-5.8.2.tar.gz"], -) - -load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") - -build_bazel_rules_nodejs_dependencies() - -# Load web_test_suite -http_archive( - name = "io_bazel_rules_webtesting", - sha256 = "e9abb7658b6a129740c0b3ef6f5a2370864e102a5ba5ffca2cea565829ed825a", - urls = ["https://github.com/bazelbuild/rules_webtesting/releases/download/0.3.5/rules_webtesting.tar.gz"], -) - -load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") - -yarn_install( - name = "npm", - exports_directories_only = False, - package_json = "//:package.json", - yarn_lock = "//:yarn.lock", -) diff --git a/e2e/coverage/coverage.spec.js b/e2e/coverage/coverage.spec.js deleted file mode 100644 index a0151a1df6..0000000000 --- a/e2e/coverage/coverage.spec.js +++ /dev/null @@ -1,10 +0,0 @@ -const {isString} = require('./coverage_source'); - -describe('coverage function', () => { - it('should cover one branch', () => { - expect(isString(2)).toBe(false); - }); - it('should cover the other branch', () => { - expect(isString('some string')).toBe(true); - }); -}); diff --git a/e2e/coverage/coverage_source.ts b/e2e/coverage/coverage_source.ts deleted file mode 100644 index 45f569b949..0000000000 --- a/e2e/coverage/coverage_source.ts +++ /dev/null @@ -1,7 +0,0 @@ -export function isString(input: string) { - if (typeof input === 'string') { - return true; - } else { - return false; - } -} diff --git a/e2e/coverage/fail.spec.js b/e2e/coverage/fail.spec.js deleted file mode 100644 index 9405daee26..0000000000 --- a/e2e/coverage/fail.spec.js +++ /dev/null @@ -1,3 +0,0 @@ -describe('jasmine_node_fail_test', () => { - it('should fail', () => {expect(0).toEqual(1)}); -}); diff --git a/e2e/coverage/package.json b/e2e/coverage/package.json deleted file mode 100644 index 4cb26a5d94..0000000000 --- a/e2e/coverage/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "e2e-coverage", - "dependencies": { - "@bazel/concatjs": "^5.8.1", - "@bazel/jasmine": "^5.8.1", - "jasmine": "3.6.1", - "typescript": "4.3.2" - }, - "scripts": { - "test": "bazel coverage ..." - } -} diff --git a/e2e/coverage/tsconfig.json b/e2e/coverage/tsconfig.json deleted file mode 100644 index 0d66552006..0000000000 --- a/e2e/coverage/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "lib": ["es2017", "dom"], - "strict": true, - "baseUrl": ".", - "target": "es2015", - } -} diff --git a/e2e/coverage/yarn.lock b/e2e/coverage/yarn.lock deleted file mode 100644 index b01c1d53dc..0000000000 --- a/e2e/coverage/yarn.lock +++ /dev/null @@ -1,1288 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@bazel/concatjs@^5.8.1": - version "5.8.1" - resolved "https://registry.yarnpkg.com/@bazel/concatjs/-/concatjs-5.8.1.tgz#dd20882429e382cae79c08cbd3238dfc680d2d67" - integrity sha512-TkARsNUxgi3bjFeGwIGlffmQglNhuR9qK9uE7uKhdBZvQE5caAWVCjYiMTzo3viKDhwKn5QNRcHY5huuJMVFfA== - dependencies: - protobufjs "6.8.8" - source-map-support "0.5.9" - tsutils "3.21.0" - -"@bazel/jasmine@^5.8.1": - version "5.8.1" - resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-5.8.1.tgz#c549f10806474ff742f37544733fbfdccf78ba66" - integrity sha512-052veW5EbJRH+5hL4l9Sf99bTmdKQ5WXXMF0QiBOZcA3ZHYMAaKfYNO+brutiWoX6FrBloiskLrMzF8OiHBqyw== - dependencies: - c8 "~7.5.0" - jasmine-reporters "~2.5.0" - -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== - -"@istanbuljs/schema@^0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" - integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== - -"@mrmlnc/readdir-enhanced@^2.2.1": - version "2.2.1" - resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" - integrity sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g== - dependencies: - call-me-maybe "^1.0.1" - glob-to-regexp "^0.3.0" - -"@nodelib/fs.stat@^1.1.2": - version "1.1.3" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" - integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== - -"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" - integrity sha1-m4sMxmPWaafY9vXQiToU00jzD78= - -"@protobufjs/base64@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz#4c85730e59b9a1f1f349047dbf24296034bb2735" - integrity sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg== - -"@protobufjs/codegen@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@protobufjs/codegen/-/codegen-2.0.4.tgz#7ef37f0d010fb028ad1ad59722e506d9262815cb" - integrity sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg== - -"@protobufjs/eventemitter@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz#355cbc98bafad5978f9ed095f397621f1d066b70" - integrity sha1-NVy8mLr61ZePntCV85diHx0Ga3A= - -"@protobufjs/fetch@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/fetch/-/fetch-1.1.0.tgz#ba99fb598614af65700c1619ff06d454b0d84c45" - integrity sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU= - dependencies: - "@protobufjs/aspromise" "^1.1.1" - "@protobufjs/inquire" "^1.1.0" - -"@protobufjs/float@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@protobufjs/float/-/float-1.0.2.tgz#5e9e1abdcb73fc0a7cb8b291df78c8cbd97b87d1" - integrity sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E= - -"@protobufjs/inquire@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/inquire/-/inquire-1.1.0.tgz#ff200e3e7cf2429e2dcafc1140828e8cc638f089" - integrity sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik= - -"@protobufjs/path@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/path/-/path-1.1.2.tgz#6cc2b20c5c9ad6ad0dccfd21ca7673d8d7fbf68d" - integrity sha1-bMKyDFya1q0NzP0hynZz2Nf79o0= - -"@protobufjs/pool@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/pool/-/pool-1.1.0.tgz#09fd15f2d6d3abfa9b65bc366506d6ad7846ff54" - integrity sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q= - -"@protobufjs/utf8@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" - integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA= - -"@types/color-name@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" - integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== - -"@types/is-windows@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/is-windows/-/is-windows-1.0.0.tgz#1011fa129d87091e2f6faf9042d6704cdf2e7be0" - integrity sha512-tJ1rq04tGKuIJoWIH0Gyuwv4RQ3+tIu7wQrC0MV47raQ44kIzXSSFKfrxFUOWVRvesoF7mrTqigXmqoZJsXwTg== - -"@types/istanbul-lib-coverage@^2.0.1": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762" - integrity sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw== - -"@types/long@^4.0.0": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.1.tgz#459c65fa1867dafe6a8f322c4c51695663cc55e9" - integrity sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w== - -"@types/node@^10.1.0": - version "10.17.28" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.28.tgz#0e36d718a29355ee51cec83b42d921299200f6d9" - integrity sha512-dzjES1Egb4c1a89C7lKwQh8pwjYmlOAG9dW1pBgxEk57tMrLnssOfEthz8kdkNaBd7lIqQx7APm5+mZ619IiCQ== - -"@xmldom/xmldom@^0.7.3": - version "0.7.5" - resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.5.tgz#09fa51e356d07d0be200642b0e4f91d8e6dd408d" - integrity sha512-V3BIhmY36fXZ1OtVcI9W+FxQqxVLsPKcNjWigIaa81dLC9IolJl5Mt4Cvhmr0flUnjSpTdrbMTSbXqYqV5dT6A== - -ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== - -ansi-styles@^4.0.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359" - integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== - dependencies: - "@types/color-name" "^1.1.1" - color-convert "^2.0.1" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= - -arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -buffer-from@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" - integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== - -c8@~7.5.0: - version "7.5.0" - resolved "https://registry.yarnpkg.com/c8/-/c8-7.5.0.tgz#a69439ab82848f344a74bb25dc5dd4e867764481" - integrity sha512-GSkLsbvDr+FIwjNSJ8OwzWAyuznEYGTAd1pzb/Kr0FMLuV4vqYJTyjboDTwmlUNAG6jAU3PFWzqIdKrOt1D8tw== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@istanbuljs/schema" "^0.1.2" - find-up "^5.0.0" - foreground-child "^2.0.0" - furi "^2.0.0" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-report "^3.0.0" - istanbul-reports "^3.0.2" - rimraf "^3.0.0" - test-exclude "^6.0.0" - v8-to-istanbul "^7.1.0" - yargs "^16.0.0" - yargs-parser "^20.0.0" - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -call-me-maybe@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b" - integrity sha1-JtII6onje1y95gJQoV8DHBak1ms= - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -convert-source-map@^1.6.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" - integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== - dependencies: - safe-buffer "~5.1.1" - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= - -cross-spawn@^7.0.0: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -debug@^2.2.0, debug@^2.3.3: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -fast-glob@^2.2.6: - version "2.2.7" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.2.7.tgz#6953857c3afa475fff92ee6015d52da70a4cd39d" - integrity sha512-g1KuQwHOZAmOZMuBtHdxDtju+T2RT8jgCC9aANsbpdiDDTSnjgfuVsIBNKbUeJI3oKMRExcfNDtJl4OhbffMsw== - dependencies: - "@mrmlnc/readdir-enhanced" "^2.2.1" - "@nodelib/fs.stat" "^1.1.2" - glob-parent "^3.1.0" - is-glob "^4.0.0" - merge2 "^1.2.3" - micromatch "^3.1.10" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= - -foreground-child@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-2.0.0.tgz#71b32800c9f15aa8f2f83f4a6bd9bff35d861a53" - integrity sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA== - dependencies: - cross-spawn "^7.0.0" - signal-exit "^3.0.2" - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= - dependencies: - map-cache "^0.2.2" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= - -furi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/furi/-/furi-2.0.0.tgz#13d85826a1af21acc691da6254b3888fc39f0b4a" - integrity sha512-uKuNsaU0WVaK/vmvj23wW1bicOFfyqSsAIH71bRZx8kA4Xj+YCHin7CJKJJjkIsmxYaPFLk9ljmjEyB7xF7WvQ== - dependencies: - "@types/is-windows" "^1.0.0" - is-windows "^1.0.2" - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= - -glob-parent@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" - integrity sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4= - dependencies: - is-glob "^3.1.0" - path-dirname "^1.0.0" - -glob-to-regexp@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" - integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs= - -glob@^7.1.3: - version "7.1.4" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" - integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.4: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== - dependencies: - kind-of "^6.0.0" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^2.1.0, is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-glob@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" - integrity sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo= - dependencies: - is-extglob "^2.1.0" - -is-glob@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" - integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== - dependencies: - is-extglob "^2.1.1" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= - dependencies: - kind-of "^3.0.2" - -is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -isarray@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= - -istanbul-lib-coverage@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz#f5944a37c70b550b02a78a5c3b2055b280cec8ec" - integrity sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg== - -istanbul-lib-report@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" - integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^3.0.0" - supports-color "^7.1.0" - -istanbul-reports@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.0.2.tgz#d593210e5000683750cb09fc0644e4b6e27fd53b" - integrity sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -jasmine-core@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.6.0.tgz#491f3bb23941799c353ceb7a45b38a950ebc5a20" - integrity sha512-8uQYa7zJN8hq9z+g8z1bqCfdC8eoDAeVnM5sfqs7KHv9/ifoJ500m018fpFc7RDaO6SWCLCXwo/wPSNcdYTgcw== - -jasmine-reporters@~2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/jasmine-reporters/-/jasmine-reporters-2.5.0.tgz#f9e2e0f82aaa2e07e8d553be56457efe0fd8b39e" - integrity sha512-J69peyTR8j6SzvIPP6aO1Y00wwCqXuIvhwTYvE/di14roCf6X3wDZ4/cKGZ2fGgufjhP2FKjpgrUIKjwau4e/Q== - dependencies: - "@xmldom/xmldom" "^0.7.3" - mkdirp "^1.0.4" - -jasmine@3.6.1: - version "3.6.1" - resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-3.6.1.tgz#a20456b309a669b547a3c24bb2120f16f70cfc65" - integrity sha512-Jqp8P6ZWkTVFGmJwBK46p+kJNrZCdqkQ4GL+PGuBXZwK1fM4ST9BizkYgIwCFqYYqnTizAy6+XG2Ej5dFrej9Q== - dependencies: - fast-glob "^2.2.6" - jasmine-core "~3.6.0" - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -long@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" - integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== - -make-dir@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= - dependencies: - object-visit "^1.0.0" - -merge2@^1.2.3: - version "1.4.1" - resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" - integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== - -micromatch@^3.1.10: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== - dependencies: - brace-expansion "^1.1.7" - -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -mkdirp@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" - integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= - dependencies: - isobject "^3.0.0" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= - dependencies: - isobject "^3.0.1" - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= - dependencies: - wrappy "1" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= - -path-dirname@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" - integrity sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA= - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= - -protobufjs@6.8.8: - version "6.8.8" - resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.8.8.tgz#c8b4f1282fd7a90e6f5b109ed11c84af82908e7c" - integrity sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw== - dependencies: - "@protobufjs/aspromise" "^1.1.2" - "@protobufjs/base64" "^1.1.2" - "@protobufjs/codegen" "^2.0.4" - "@protobufjs/eventemitter" "^1.1.0" - "@protobufjs/fetch" "^1.1.0" - "@protobufjs/float" "^1.0.2" - "@protobufjs/inquire" "^1.1.0" - "@protobufjs/path" "^1.1.2" - "@protobufjs/pool" "^1.1.0" - "@protobufjs/utf8" "^1.1.0" - "@types/long" "^4.0.0" - "@types/node" "^10.1.0" - long "^4.0.0" - -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -repeat-element@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" - integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== - -repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== - -rimraf@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= - dependencies: - ret "~0.1.10" - -semver@^6.0.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -signal-exit@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@0.5.9: - version "0.5.9" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.9.tgz#41bc953b2534267ea2d605bccfa7bfa3111ced5f" - integrity sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map-url@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" - integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= - -source-map@^0.5.6: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= - -source-map@^0.6.0: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -source-map@^0.7.3: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" - integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" - -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== - dependencies: - ansi-regex "^5.0.0" - -supports-color@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" - integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== - dependencies: - has-flag "^4.0.0" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -tslib@^1.8.1: - version "1.13.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043" - integrity sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q== - -tsutils@3.21.0: - version "3.21.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - -typescript@4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805" - integrity sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw== - -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= - -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - -v8-to-istanbul@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz#5b95cef45c0f83217ec79f8fc7ee1c8b486aee07" - integrity sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - -y18n@^5.0.5: - version "5.0.5" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18" - integrity sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg== - -yargs-parser@^20.0.0, yargs-parser@^20.2.2: - version "20.2.4" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" - integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== - -yargs@^16.0.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== diff --git a/e2e/jasmine/.bazelignore b/e2e/jasmine/.bazelignore deleted file mode 100644 index 6924375195..0000000000 --- a/e2e/jasmine/.bazelignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -dist -bazel-out diff --git a/e2e/jasmine/.bazelrc b/e2e/jasmine/.bazelrc deleted file mode 100644 index 3431057af6..0000000000 --- a/e2e/jasmine/.bazelrc +++ /dev/null @@ -1 +0,0 @@ -import %workspace%/../../common.bazelrc diff --git a/e2e/jasmine/BUILD.bazel b/e2e/jasmine/BUILD.bazel deleted file mode 100644 index 550db6e5d2..0000000000 --- a/e2e/jasmine/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test") - -jasmine_node_test( - name = "test", - srcs = ["test.spec.js"], -) - -jasmine_node_test( - name = "shared_env_test", - srcs = ["jasmine_shared_env_test.spec.js"], - data = ["jasmine_shared_env_bootstrap.js"], - templated_args = [ - "--node_options=--require=$$(rlocation $(rootpath :jasmine_shared_env_bootstrap.js))", - ], - deps = [ - "@npm//jasmine", - "@npm//jasmine-core", - "@npm//zone.js", - ], -) diff --git a/e2e/jasmine/WORKSPACE b/e2e/jasmine/WORKSPACE deleted file mode 100644 index 1ce38f1dc8..0000000000 --- a/e2e/jasmine/WORKSPACE +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 2017 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -workspace(name = "e2e_jasmine") - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "build_bazel_rules_nodejs", - sha256 = "94070eff79305be05b7699207fbac5d2608054dd53e6109f7d00d923919ff45a", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.2/rules_nodejs-5.8.2.tar.gz"], -) - -load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") - -build_bazel_rules_nodejs_dependencies() - -load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") - -yarn_install( - name = "npm", - exports_directories_only = False, - package_json = "//:package.json", - yarn_lock = "//:yarn.lock", -) diff --git a/e2e/jasmine/jasmine_shared_env_bootstrap.js b/e2e/jasmine/jasmine_shared_env_bootstrap.js deleted file mode 100644 index 27c1361141..0000000000 --- a/e2e/jasmine/jasmine_shared_env_bootstrap.js +++ /dev/null @@ -1,19 +0,0 @@ -global.foobar = 1; - -require('zone.js/dist/zone-node.js'); -require('zone.js/dist/long-stack-trace-zone.js'); -require('zone.js/dist/proxy.js'); -require('zone.js/dist/sync-test.js'); -require('zone.js/dist/async-test.js'); -require('zone.js/dist/fake-async-test.js'); -require('zone.js/dist/task-tracking.js'); - -// Initialize jasmine with @bazel/jasmine boot() function. This will initialize -// global.jasmine so that it can be patched by zone.js jasmine-patch.js. -require('@bazel/jasmine').boot(); - -// Test that a bootstrap afterEach() is preserved in the jasmine tests -afterEach(() => global.foobar++); - -// Test that the jasmine zone patch is preserved in the jasmine tests -require('zone.js/dist/jasmine-patch.js'); diff --git a/e2e/jasmine/jasmine_shared_env_test.spec.js b/e2e/jasmine/jasmine_shared_env_test.spec.js deleted file mode 100644 index 6b072c32c8..0000000000 --- a/e2e/jasmine/jasmine_shared_env_test.spec.js +++ /dev/null @@ -1,18 +0,0 @@ -let globalFoobars = []; -describe('jasmine_shared_env_test', () => { - it('global.foobar should change', () => { - expect(globalFoobars.includes(global.foobar)).toBe(false); - globalFoobars.push(global.foobar); - }); - it('global.foobar should change again', () => { - expect(globalFoobars.includes(global.foobar)).toBe(false); - globalFoobars.push(global.foobar); - }); - it('global.foobar should change again again', () => { - expect(globalFoobars.includes(global.foobar)).toBe(false); - globalFoobars.push(global.foobar); - }); - it('should have the jasmine zone patch applies', () => { - expect(global.jasmine['__zone_patch__']).toBe(true); - }) -}); diff --git a/e2e/jasmine/package.json b/e2e/jasmine/package.json deleted file mode 100644 index 35ef80e662..0000000000 --- a/e2e/jasmine/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "e2e-jasmine", - "dependencies": { - "@bazel/jasmine": "^5.8.1", - "zone.js": "0.8.29" - }, - "//": "Include an incompatible jasmine as a devDependency to verify that jasmine_node_test works regardless", - "scripts": { - "test": "bazel test ..." - }, - "devDependencies": { - "jasmine": "2.99.0", - "jasmine-core": "2.99.0" - } -} diff --git a/e2e/jasmine/test.spec.js b/e2e/jasmine/test.spec.js deleted file mode 100644 index c5f0665d6e..0000000000 --- a/e2e/jasmine/test.spec.js +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/e2e/jasmine/yarn.lock b/e2e/jasmine/yarn.lock deleted file mode 100644 index 788ad9566b..0000000000 --- a/e2e/jasmine/yarn.lock +++ /dev/null @@ -1,489 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@bazel/jasmine@^5.8.1": - version "5.8.1" - resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-5.8.1.tgz#c549f10806474ff742f37544733fbfdccf78ba66" - integrity sha512-052veW5EbJRH+5hL4l9Sf99bTmdKQ5WXXMF0QiBOZcA3ZHYMAaKfYNO+brutiWoX6FrBloiskLrMzF8OiHBqyw== - dependencies: - c8 "~7.5.0" - jasmine-reporters "~2.5.0" - -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== - -"@istanbuljs/schema@^0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" - integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== - -"@types/color-name@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" - integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== - -"@types/is-windows@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/is-windows/-/is-windows-1.0.0.tgz#1011fa129d87091e2f6faf9042d6704cdf2e7be0" - integrity sha512-tJ1rq04tGKuIJoWIH0Gyuwv4RQ3+tIu7wQrC0MV47raQ44kIzXSSFKfrxFUOWVRvesoF7mrTqigXmqoZJsXwTg== - -"@types/istanbul-lib-coverage@^2.0.1": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762" - integrity sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw== - -"@xmldom/xmldom@^0.7.3": - version "0.7.5" - resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.5.tgz#09fa51e356d07d0be200642b0e4f91d8e6dd408d" - integrity sha512-V3BIhmY36fXZ1OtVcI9W+FxQqxVLsPKcNjWigIaa81dLC9IolJl5Mt4Cvhmr0flUnjSpTdrbMTSbXqYqV5dT6A== - -ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== - -ansi-styles@^4.0.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359" - integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== - dependencies: - "@types/color-name" "^1.1.1" - color-convert "^2.0.1" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -c8@~7.5.0: - version "7.5.0" - resolved "https://registry.yarnpkg.com/c8/-/c8-7.5.0.tgz#a69439ab82848f344a74bb25dc5dd4e867764481" - integrity sha512-GSkLsbvDr+FIwjNSJ8OwzWAyuznEYGTAd1pzb/Kr0FMLuV4vqYJTyjboDTwmlUNAG6jAU3PFWzqIdKrOt1D8tw== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@istanbuljs/schema" "^0.1.2" - find-up "^5.0.0" - foreground-child "^2.0.0" - furi "^2.0.0" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-report "^3.0.0" - istanbul-reports "^3.0.2" - rimraf "^3.0.0" - test-exclude "^6.0.0" - v8-to-istanbul "^7.1.0" - yargs "^16.0.0" - yargs-parser "^20.0.0" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -convert-source-map@^1.6.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" - integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== - dependencies: - safe-buffer "~5.1.1" - -cross-spawn@^7.0.0: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -exit@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -foreground-child@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-2.0.0.tgz#71b32800c9f15aa8f2f83f4a6bd9bff35d861a53" - integrity sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA== - dependencies: - cross-spawn "^7.0.0" - signal-exit "^3.0.2" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= - -furi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/furi/-/furi-2.0.0.tgz#13d85826a1af21acc691da6254b3888fc39f0b4a" - integrity sha512-uKuNsaU0WVaK/vmvj23wW1bicOFfyqSsAIH71bRZx8kA4Xj+YCHin7CJKJJjkIsmxYaPFLk9ljmjEyB7xF7WvQ== - dependencies: - "@types/is-windows" "^1.0.0" - is-windows "^1.0.2" - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -glob@^7.0.6, glob@^7.1.4: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.3: - version "7.1.4" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" - integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= - -istanbul-lib-coverage@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz#f5944a37c70b550b02a78a5c3b2055b280cec8ec" - integrity sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg== - -istanbul-lib-report@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" - integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^3.0.0" - supports-color "^7.1.0" - -istanbul-reports@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.0.2.tgz#d593210e5000683750cb09fc0644e4b6e27fd53b" - integrity sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -jasmine-core@2.99.0: - version "2.99.0" - resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.99.0.tgz#c105ab5222da45f1b0a10580383f5adbbff56d2c" - integrity sha1-wQWrUiLaRfGwoQWAOD9a27/1bSw= - -jasmine-core@~2.99.0: - version "2.99.1" - resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.99.1.tgz#e6400df1e6b56e130b61c4bcd093daa7f6e8ca15" - integrity sha1-5kAN8ea1bhMLYcS80JPap/boyhU= - -jasmine-reporters@~2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/jasmine-reporters/-/jasmine-reporters-2.5.0.tgz#f9e2e0f82aaa2e07e8d553be56457efe0fd8b39e" - integrity sha512-J69peyTR8j6SzvIPP6aO1Y00wwCqXuIvhwTYvE/di14roCf6X3wDZ4/cKGZ2fGgufjhP2FKjpgrUIKjwau4e/Q== - dependencies: - "@xmldom/xmldom" "^0.7.3" - mkdirp "^1.0.4" - -jasmine@2.99.0: - version "2.99.0" - resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-2.99.0.tgz#8ca72d102e639b867c6489856e0e18a9c7aa42b7" - integrity sha1-jKctEC5jm4Z8ZImFbg4YqceqQrc= - dependencies: - exit "^0.1.2" - glob "^7.0.6" - jasmine-core "~2.99.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -make-dir@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== - dependencies: - brace-expansion "^1.1.7" - -mkdirp@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" - integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= - dependencies: - wrappy "1" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -rimraf@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -semver@^6.0.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -signal-exit@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= - -source-map@^0.7.3: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" - integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" - -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== - dependencies: - ansi-regex "^5.0.0" - -supports-color@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" - integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== - dependencies: - has-flag "^4.0.0" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - -v8-to-istanbul@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz#5b95cef45c0f83217ec79f8fc7ee1c8b486aee07" - integrity sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - -y18n@^5.0.5: - version "5.0.5" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18" - integrity sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg== - -yargs-parser@^20.0.0, yargs-parser@^20.2.2: - version "20.2.4" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" - integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== - -yargs@^16.0.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== - -zone.js@0.8.29: - version "0.8.29" - resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.29.tgz#8dce92aa0dd553b50bc5bfbb90af9986ad845a12" - integrity sha512-mla2acNCMkWXBD+c+yeUrBUrzOxYMNFdQ6FGfigGGtEVBPJx07BQeJekjt9DmH1FtZek4E9rE1eRR9qQpxACOQ== diff --git a/examples/BUILD.bazel b/examples/BUILD.bazel index 9a8807b28f..107afe83bd 100644 --- a/examples/BUILD.bazel +++ b/examples/BUILD.bazel @@ -108,7 +108,6 @@ example_integration_test( example_integration_test( name = "examples_kotlin", npm_packages = { - "//packages/jasmine:npm_package": "@bazel/jasmine", "//packages/rollup:npm_package": "@bazel/rollup", }, tags = [ @@ -157,7 +156,6 @@ example_integration_test( "build --platforms=@rules_nodejs//nodejs:linux_amd64 //src:docker", ], npm_packages = { - "//packages/jasmine:npm_package": "@bazel/jasmine", "//packages/typescript:npm_package": "@bazel/typescript", }, owners = [ @@ -180,7 +178,6 @@ example_integration_test( example_integration_test( name = "examples_protobufjs", npm_packages = { - "//packages/jasmine:npm_package": "@bazel/jasmine", "//packages/typescript:npm_package": "@bazel/typescript", }, # Flakes on windows @@ -188,14 +185,6 @@ example_integration_test( tags = ["no-bazelci-windows"], ) -example_integration_test( - name = "examples_vendored_node_and_yarn", - npm_packages = { - "//packages/jasmine:npm_package": "@bazel/jasmine", - }, - # TODO: make it find node.exe rather than rely on us writing a .cmd wrapper - tags = ["no-bazelci-windows"], -) example_integration_test( name = "examples_vue", diff --git a/examples/kotlin/BUILD.bazel b/examples/kotlin/BUILD.bazel index 50ef918014..c12913617d 100644 --- a/examples/kotlin/BUILD.bazel +++ b/examples/kotlin/BUILD.bazel @@ -3,7 +3,6 @@ load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin", "pkg_web") load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kt_js_import", "kt_js_library") -load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test") load("@npm//@bazel/rollup:index.bzl", "rollup_bundle") load("@npm//http-server:index.bzl", "http_server") @@ -58,18 +57,4 @@ http_server( name = "server", data = [":package"], templated_args = ["package"], -) - -jasmine_node_test( - name = "test", - srcs = ["spec.js"], - data = [ - ":bundle", - "@npm//domino", - ], - templated_args = [ - # TODO: don't rely on patching require() - "--bazel_patch_module_resolver", - "--node_options=--experimental-modules", - ], -) +) \ No newline at end of file diff --git a/examples/nestjs/src/BUILD.bazel b/examples/nestjs/src/BUILD.bazel index 0081353095..d32997e90a 100644 --- a/examples/nestjs/src/BUILD.bazel +++ b/examples/nestjs/src/BUILD.bazel @@ -14,7 +14,6 @@ load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary") load("@io_bazel_rules_docker//nodejs:image.bzl", "nodejs_image") -load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test") load("@npm//@bazel/typescript:index.bzl", "ts_project") package(default_visibility = ["//visibility:public"]) @@ -66,13 +65,6 @@ nodejs_binary( entry_point = ":main.ts", ) -jasmine_node_test( - name = "test", - deps = [ - ":test_lib", - ], -) - # bazel build --platforms=@rules_nodejs//nodejs:linux_amd64 //src:docker nodejs_image( name = "docker", diff --git a/examples/protobufjs/BUILD.bazel b/examples/protobufjs/BUILD.bazel index 3bcff45a5a..c596504923 100644 --- a/examples/protobufjs/BUILD.bazel +++ b/examples/protobufjs/BUILD.bazel @@ -1,4 +1,3 @@ -load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test") load("@npm//@bazel/typescript:index.bzl", "ts_project") load("@rules_proto//proto:defs.bzl", "proto_library") load(":defs.bzl", "protobufjs_library") @@ -41,8 +40,3 @@ ts_project( "@npm//protobufjs", ], ) - -jasmine_node_test( - name = "test", - deps = ["test_lib"], -) diff --git a/examples/vendored_node_and_yarn/.bazelignore b/examples/vendored_node_and_yarn/.bazelignore deleted file mode 100644 index 6924375195..0000000000 --- a/examples/vendored_node_and_yarn/.bazelignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -dist -bazel-out diff --git a/examples/vendored_node_and_yarn/.bazelrc b/examples/vendored_node_and_yarn/.bazelrc deleted file mode 100644 index 11da49bc73..0000000000 --- a/examples/vendored_node_and_yarn/.bazelrc +++ /dev/null @@ -1,5 +0,0 @@ -import %workspace%/../../common.bazelrc - -# ensure that the globs that are used in node_repositories are removed when -# using vendored node or yarn -build --incompatible_disallow_empty_glob diff --git a/examples/vendored_node_and_yarn/BUILD.bazel b/examples/vendored_node_and_yarn/BUILD.bazel deleted file mode 100644 index d1cca41dfe..0000000000 --- a/examples/vendored_node_and_yarn/BUILD.bazel +++ /dev/null @@ -1,6 +0,0 @@ -load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test") - -jasmine_node_test( - name = "test", - srcs = glob(["*.spec.js"]), -) diff --git a/examples/vendored_node_and_yarn/README.md b/examples/vendored_node_and_yarn/README.md deleted file mode 100644 index 1cd61820a1..0000000000 --- a/examples/vendored_node_and_yarn/README.md +++ /dev/null @@ -1,6 +0,0 @@ -We download https://nodejs.org/dist/v10.12.0/node-v10.12.0-linux-x64.tar.xz and -https://github.com/yarnpkg/yarn/releases/download/v1.10.0/yarn-v1.10.0.tar.gz for this -test (see package.json) so that the contents of these packages do not have to be checked in. - -In a real world scenario, the contents of these files can be checked into the repository, -or they could be built from source as part of the Bazel build. diff --git a/examples/vendored_node_and_yarn/WORKSPACE b/examples/vendored_node_and_yarn/WORKSPACE deleted file mode 100644 index cff4ccf4fb..0000000000 --- a/examples/vendored_node_and_yarn/WORKSPACE +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 2019 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -workspace(name = "examples_vendored_node_and_yarn") - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "build_bazel_rules_nodejs", - sha256 = "94070eff79305be05b7699207fbac5d2608054dd53e6109f7d00d923919ff45a", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.2/rules_nodejs-5.8.2.tar.gz"], -) - -load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") - -build_bazel_rules_nodejs_dependencies() - -# See comment in README about these fetches -http_archive( - name = "vendored_node_linux_amd64", - build_file_content = """exports_files(["bin/node"])""", - sha256 = "cc9c3eed21755b490e5333ccab208ce15b539c35f64a764eeeae77c58746a7ff", - strip_prefix = "node-v15.0.1-linux-x64", - urls = ["https://nodejs.org/dist/v15.0.1/node-v15.0.1-linux-x64.tar.xz"], -) - -http_archive( - name = "vendored_node_darwin_amd64", - build_file_content = """exports_files(["bin/node"])""", - sha256 = "78571df5b35d3ec73d7543332776bcb8cab3bc0e3abd12b1440fbcd01c74c055", - strip_prefix = "node-v15.0.1-darwin-x64", - urls = ["https://nodejs.org/dist/v15.0.1/node-v15.0.1-darwin-x64.tar.xz"], -) - -http_archive( - name = "vendored_node_windows_amd64", - build_file_content = """exports_files(["node.exe"])""", - sha256 = "efa7a74d91789a6e9f068f375e49f108ff87578fd88ff4b4e7fefd930c04db6c", - strip_prefix = "node-v15.0.1-win-x64", - urls = ["https://nodejs.org/dist/v15.0.1/node-v15.0.1-win-x64.zip"], -) - -http_archive( - name = "vendored_yarn_1_10_0", - build_file_content = """exports_files(["bin/yarn.js"])""", - sha256 = "83277bd505c7f4009c13077266020c97298727de7edf67af5ca66eccae9d4632", - strip_prefix = "yarn-v1.10.0", - urls = ["https://github.com/yarnpkg/yarn/releases/download/v1.10.0/yarn-v1.10.0.tar.gz"], -) - -load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") - -yarn_install( - name = "npm", - exports_directories_only = False, - node_repository = "vendored_node", - package_json = "//:package.json", - yarn = "@vendored_yarn_1_10_0//:bin/yarn.js", - yarn_lock = "//:yarn.lock", -) diff --git a/examples/vendored_node_and_yarn/package.json b/examples/vendored_node_and_yarn/package.json deleted file mode 100644 index 3fd74cd420..0000000000 --- a/examples/vendored_node_and_yarn/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "private": true, - "devDependencies": { - "@bazel/jasmine": "^5.8.1", - "jasmine": "^3.5.0" - }, - "scripts": { - "//": "assert that yarn version is the one we vendored", - "postinstall": "node -e \"require('assert').equal('yarn/1.10.0', process.env['npm_config_user_agent'].split(' ').find(x => x.startsWith('yarn/')))\"", - "test": "bazel test ..." - } -} diff --git a/examples/vendored_node_and_yarn/toolchains/BUILD.bazel b/examples/vendored_node_and_yarn/toolchains/BUILD.bazel deleted file mode 100644 index 6e439e7594..0000000000 --- a/examples/vendored_node_and_yarn/toolchains/BUILD.bazel +++ /dev/null @@ -1,42 +0,0 @@ -"""Define toolchains for nodejs - -Note that this file causes eager fetches of node for all platforms -because the Bazel analysis phase follows the labels below. - -In a real project you would vendor the binaries you need, or -build them from source, so there shouldn't be any fetches required. -""" - -load("@rules_nodejs//nodejs:toolchain.bzl", "node_toolchain") - -[ - toolchain( - name = "node15_%s_toolchain" % os, - exec_compatible_with = [ - "@platforms//os:" + os, - "@platforms//cpu:x86_64", - ], - toolchain = ":node_" + os, - toolchain_type = "@rules_nodejs//nodejs:toolchain_type", - ) - for os in [ - "linux", - "macos", - "windows", - ] -] - -node_toolchain( - name = "node_linux", - target_tool = "@vendored_node_linux_amd64//:bin/node", -) - -node_toolchain( - name = "node_macos", - target_tool = "@vendored_node_darwin_amd64//:bin/node", -) - -node_toolchain( - name = "node_windows", - target_tool = "@vendored_node_windows_amd64//:node.exe", -) diff --git a/examples/vendored_node_and_yarn/vendored.spec.js b/examples/vendored_node_and_yarn/vendored.spec.js deleted file mode 100644 index e31a7f3202..0000000000 --- a/examples/vendored_node_and_yarn/vendored.spec.js +++ /dev/null @@ -1,5 +0,0 @@ -describe('node version', () => { - it('should be the one we vendored', () => { - expect(process.version).toBe('v15.0.1'); - }); -}); diff --git a/examples/vendored_node_and_yarn/yarn.lock b/examples/vendored_node_and_yarn/yarn.lock deleted file mode 100644 index 23640ee18d..0000000000 --- a/examples/vendored_node_and_yarn/yarn.lock +++ /dev/null @@ -1,473 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@bazel/jasmine@^5.8.1": - version "5.8.1" - resolved "https://registry.yarnpkg.com/@bazel/jasmine/-/jasmine-5.8.1.tgz#c549f10806474ff742f37544733fbfdccf78ba66" - integrity sha512-052veW5EbJRH+5hL4l9Sf99bTmdKQ5WXXMF0QiBOZcA3ZHYMAaKfYNO+brutiWoX6FrBloiskLrMzF8OiHBqyw== - dependencies: - c8 "~7.5.0" - jasmine-reporters "~2.5.0" - -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== - -"@istanbuljs/schema@^0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" - integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== - -"@types/color-name@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" - integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== - -"@types/is-windows@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/is-windows/-/is-windows-1.0.0.tgz#1011fa129d87091e2f6faf9042d6704cdf2e7be0" - integrity sha512-tJ1rq04tGKuIJoWIH0Gyuwv4RQ3+tIu7wQrC0MV47raQ44kIzXSSFKfrxFUOWVRvesoF7mrTqigXmqoZJsXwTg== - -"@types/istanbul-lib-coverage@^2.0.1": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762" - integrity sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw== - -"@xmldom/xmldom@^0.7.3": - version "0.7.5" - resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.5.tgz#09fa51e356d07d0be200642b0e4f91d8e6dd408d" - integrity sha512-V3BIhmY36fXZ1OtVcI9W+FxQqxVLsPKcNjWigIaa81dLC9IolJl5Mt4Cvhmr0flUnjSpTdrbMTSbXqYqV5dT6A== - -ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== - -ansi-styles@^4.0.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359" - integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== - dependencies: - "@types/color-name" "^1.1.1" - color-convert "^2.0.1" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -c8@~7.5.0: - version "7.5.0" - resolved "https://registry.yarnpkg.com/c8/-/c8-7.5.0.tgz#a69439ab82848f344a74bb25dc5dd4e867764481" - integrity sha512-GSkLsbvDr+FIwjNSJ8OwzWAyuznEYGTAd1pzb/Kr0FMLuV4vqYJTyjboDTwmlUNAG6jAU3PFWzqIdKrOt1D8tw== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@istanbuljs/schema" "^0.1.2" - find-up "^5.0.0" - foreground-child "^2.0.0" - furi "^2.0.0" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-report "^3.0.0" - istanbul-reports "^3.0.2" - rimraf "^3.0.0" - test-exclude "^6.0.0" - v8-to-istanbul "^7.1.0" - yargs "^16.0.0" - yargs-parser "^20.0.0" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -convert-source-map@^1.6.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" - integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== - dependencies: - safe-buffer "~5.1.1" - -cross-spawn@^7.0.0: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -foreground-child@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-2.0.0.tgz#71b32800c9f15aa8f2f83f4a6bd9bff35d861a53" - integrity sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA== - dependencies: - cross-spawn "^7.0.0" - signal-exit "^3.0.2" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= - -furi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/furi/-/furi-2.0.0.tgz#13d85826a1af21acc691da6254b3888fc39f0b4a" - integrity sha512-uKuNsaU0WVaK/vmvj23wW1bicOFfyqSsAIH71bRZx8kA4Xj+YCHin7CJKJJjkIsmxYaPFLk9ljmjEyB7xF7WvQ== - dependencies: - "@types/is-windows" "^1.0.0" - is-windows "^1.0.2" - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -glob@^7.1.3: - version "7.1.5" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.5.tgz#6714c69bee20f3c3e64c4dd905553e532b40cdc0" - integrity sha512-J9dlskqUXK1OeTOYBEn5s8aMukWMwWfs+rPTn/jn50Ux4MNXVhubL1wu/j2t+H4NVI+cXEcCaYellqaPVGXNqQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.4: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= - -istanbul-lib-coverage@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz#f5944a37c70b550b02a78a5c3b2055b280cec8ec" - integrity sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg== - -istanbul-lib-report@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" - integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^3.0.0" - supports-color "^7.1.0" - -istanbul-reports@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.0.2.tgz#d593210e5000683750cb09fc0644e4b6e27fd53b" - integrity sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -jasmine-core@~3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.5.0.tgz#132c23e645af96d85c8bca13c8758b18429fc1e4" - integrity sha512-nCeAiw37MIMA9w9IXso7bRaLl+c/ef3wnxsoSAlYrzS+Ot0zTG6nU8G/cIfGkqpkjX2wNaIW9RFG0TwIFnG6bA== - -jasmine-reporters@~2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/jasmine-reporters/-/jasmine-reporters-2.5.0.tgz#f9e2e0f82aaa2e07e8d553be56457efe0fd8b39e" - integrity sha512-J69peyTR8j6SzvIPP6aO1Y00wwCqXuIvhwTYvE/di14roCf6X3wDZ4/cKGZ2fGgufjhP2FKjpgrUIKjwau4e/Q== - dependencies: - "@xmldom/xmldom" "^0.7.3" - mkdirp "^1.0.4" - -jasmine@^3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-3.5.0.tgz#7101eabfd043a1fc82ac24e0ab6ec56081357f9e" - integrity sha512-DYypSryORqzsGoMazemIHUfMkXM7I7easFaxAvNM3Mr6Xz3Fy36TupTrAOxZWN8MVKEU5xECv22J4tUQf3uBzQ== - dependencies: - glob "^7.1.4" - jasmine-core "~3.5.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -make-dir@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== - dependencies: - brace-expansion "^1.1.7" - -mkdirp@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" - integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= - dependencies: - wrappy "1" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -rimraf@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -semver@^6.0.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -signal-exit@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= - -source-map@^0.7.3: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" - integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" - -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== - dependencies: - ansi-regex "^5.0.0" - -supports-color@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" - integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== - dependencies: - has-flag "^4.0.0" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - -v8-to-istanbul@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.1.0.tgz#5b95cef45c0f83217ec79f8fc7ee1c8b486aee07" - integrity sha512-uXUVqNUCLa0AH1vuVxzi+MI4RfxEOKt9pBgKwHbgH7st8Kv2P1m+jvWNnektzBh5QShF3ODgKmUFCf38LnVz1g== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - -y18n@^5.0.5: - version "5.0.5" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18" - integrity sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg== - -yargs-parser@^20.0.0, yargs-parser@^20.2.2: - version "20.2.4" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" - integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== - -yargs@^16.0.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== diff --git a/internal/bazel_integration_test/bazel_integration_test.bzl b/internal/bazel_integration_test/bazel_integration_test.bzl index 0d606838e0..cfa4cbe0a4 100644 --- a/internal/bazel_integration_test/bazel_integration_test.bzl +++ b/internal/bazel_integration_test/bazel_integration_test.bzl @@ -165,7 +165,6 @@ This can be used to verify that all npm package artifacts that need to be tested replaced in all integration tests. For example, ``` check_npm_packages = [ - "@bazel/jasmine", "@bazel/typescript", ], ``` @@ -182,7 +181,6 @@ package.json with generated npm package targets. The targets should be pkg_npm r For example, ``` npm_packages = { - "//packages/jasmine:npm_package": "@bazel/jasmine", "//packages/typescript:npm_package": "@bazel/typescript", } ```""", diff --git a/internal/common/test/BUILD.bazel b/internal/common/test/BUILD.bazel index 5560716a8a..8f1027cc33 100644 --- a/internal/common/test/BUILD.bazel +++ b/internal/common/test/BUILD.bazel @@ -1,7 +1,6 @@ load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary") load("//internal/common:copy_to_bin.bzl", "copy_to_bin") load("//internal/common:params_file.bzl", "params_file") -load("//packages/jasmine:index.bzl", "jasmine_node_test") load(":expand_into_runfiles_test.bzl", "expand_into_runfiles_test_suite") load(":preserve_legacy_templated_args_test.bzl", "preserve_legacy_templated_args_test_suite") @@ -51,16 +50,6 @@ params_file( ], ) -jasmine_node_test( - name = "params_file_test", - srcs = [":params_file.spec.js"], - data = [":params_file.out"], - templated_args = [ - "$(TARGET_CPU)", - "$(COMPILATION_MODE)", - ], -) - nodejs_binary( name = "print_cmd_args", entry_point = ":print_cmd_args.js", diff --git a/internal/linker/test/BUILD.bazel b/internal/linker/test/BUILD.bazel index 21112eec0e..b801b7f847 100644 --- a/internal/linker/test/BUILD.bazel +++ b/internal/linker/test/BUILD.bazel @@ -1,4 +1,3 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/typescript:index.bzl", "ts_project") ts_project( @@ -12,11 +11,3 @@ ts_project( "@npm//@types/node", ], ) - -jasmine_node_test( - name = "unit_tests", - srcs = ["test_lib"], - data = [ - "//internal/linker:linker_js", - ], -) diff --git a/internal/linker/test/local/BUILD.bazel b/internal/linker/test/local/BUILD.bazel index 041d7b4194..e69de29bb2 100644 --- a/internal/linker/test/local/BUILD.bazel +++ b/internal/linker/test/local/BUILD.bazel @@ -1,8 +0,0 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") - -jasmine_node_test( - name = "test", - srcs = ["test.js"], - tags = ["local"], - deps = ["//internal/linker/test/local/fit"], -) diff --git a/internal/linker/test/multi_linker/BUILD.bazel b/internal/linker/test/multi_linker/BUILD.bazel index 295e8e63a4..a34b8750c2 100644 --- a/internal/linker/test/multi_linker/BUILD.bazel +++ b/internal/linker/test/multi_linker/BUILD.bazel @@ -1,4 +1,3 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/typescript:checked_in_ts_project.bzl", "checked_in_ts_project") checked_in_ts_project( @@ -10,29 +9,3 @@ checked_in_ts_project( "@npm//@types/node", ], ) - -# Test with a .js file in the output-tree to ensure that we can -# resolve multi-linked node_modules from that context -jasmine_node_test( - name = "test", - srcs = ["test.js"], - deps = [ - "//internal/linker/test/multi_linker/onep_a", - "//internal/linker/test/multi_linker/onep_b", - "@internal_test_multi_linker_deps//semver", - "@npm//semver", - ], -) - -# Test with a .js file from the source tree to ensure that we can -# resolve multi-linked node_modules from that context -jasmine_node_test( - name = "from_sources_test", - srcs = ["checked_in_test.js"], - deps = [ - "//internal/linker/test/multi_linker/onep_a", - "//internal/linker/test/multi_linker/onep_b", - "@internal_test_multi_linker_deps//semver", - "@npm//semver", - ], -) diff --git a/internal/linker/test/workspace_link/BUILD.bazel b/internal/linker/test/workspace_link/BUILD.bazel index 560829fd3c..e69de29bb2 100644 --- a/internal/linker/test/workspace_link/BUILD.bazel +++ b/internal/linker/test/workspace_link/BUILD.bazel @@ -1,11 +0,0 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") - -jasmine_node_test( - name = "test", - srcs = ["test.js"], - link_workspace_root = True, - deps = [ - "//internal/linker/test/workspace_link/bar", - "//internal/linker/test/workspace_link/foo", - ], -) diff --git a/internal/node/node.bzl b/internal/node/node.bzl index 0948543dca..c3c043f0be 100644 --- a/internal/node/node.bzl +++ b/internal/node/node.bzl @@ -690,7 +690,6 @@ https://github.com/angular/angular/blob/master/tools/ts-api-guardian/index.bzl If you just want to run a standard test using a test runner from npm, use the generated *_test target created by npm_install/yarn_install, such as `mocha_test`. -Some test runners like Karma and Jasmine have custom rules with added features, e.g. `jasmine_node_test`. By default, Bazel runs tests with a working directory set to your workspace root. Use the `chdir` attribute to change the working directory before the program starts. diff --git a/internal/node/test/BUILD.bazel b/internal/node/test/BUILD.bazel index b7bf8823cd..af4737e258 100644 --- a/internal/node/test/BUILD.bazel +++ b/internal/node/test/BUILD.bazel @@ -1,7 +1,6 @@ load("@build_bazel_rules_nodejs//:index.bzl", "generated_file_test", "nodejs_binary", "nodejs_test", "npm_package_bin") load("@npm//typescript:index.bzl", "tsc") load("//:index.bzl", "js_library") -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//third_party/github.com/bazelbuild/bazel-skylib:rules/copy_file.bzl", "copy_file") load("@bazel_skylib//rules:write_file.bzl", "write_file") load(":npm_package_bin_test.bzl", "npm_package_bin_test_suite") @@ -69,16 +68,6 @@ nodejs_binary( entry_point = ":module-name.js", ) -jasmine_node_test( - name = "env_test", - srcs = [":env.spec.js"], - data = [ - ":dump_build_env.json", - ":dump_build_env_alt.json", - ":dump_build_env_attr_json", - ], -) - nodejs_test( name = "define_var", configuration_env_vars = [ @@ -348,15 +337,6 @@ npm_package_bin( tool = ":copy_to_directory", ) -jasmine_node_test( - name = "npm_package_bin_test", - srcs = ["npm_package_bin.spec.js"], - data = [ - "dir_output", - "minified.js", - ], -) - nodejs_binary( name = "expand_variables", entry_point = "expand_variables.js", @@ -386,23 +366,6 @@ npm_package_bin( tool = ":expand_variables", ) -jasmine_node_test( - name = "expand_variables_test", - srcs = [":expand_variables.spec.js"], - data = [":expand_variables.out"], - templated_args = [ - "$(rootpath :expand_variables.out)", - "$(execpath :expand_variables.out)", - "$(COMPILATION_MODE)", - "$(TARGET_CPU)", - "$(BINDIR)", - "$(SOME_TEST_ENV)", - # Should preserve lone $ in templated_args - "somearg$", - "some$#arg", - ], -) - nodejs_binary( name = "dump_build_env_attr", data = ["dump_build_env.js"], diff --git a/internal/npm_install/test/BUILD.bazel b/internal/npm_install/test/BUILD.bazel index ee5dbd0aae..c68334ea48 100644 --- a/internal/npm_install/test/BUILD.bazel +++ b/internal/npm_install/test/BUILD.bazel @@ -1,6 +1,5 @@ load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary") load("@build_bazel_rules_nodejs//internal/npm_install:npm_umd_bundle.bzl", "npm_umd_bundle") -load("//packages/jasmine:index.bzl", "jasmine_node_test") filegroup( name = "goldens", @@ -17,26 +16,6 @@ filegroup( srcs = glob(["golden_multi_linked/**"]), ) -jasmine_node_test( - name = "test", - srcs = ["generate_build_file.spec.js"], - data = [ - "package.spec.json", - ":check.js", - ":goldens", - ":goldens_directory_artifacts", - ":goldens_multi_linked", - "//internal/npm_install:compile_generate_build_file", - "@fine_grained_directory_artifacts_goldens//:golden_files", - "@fine_grained_goldens//:golden_files", - "@fine_grained_goldens_multi_linked//:golden_files", - "@npm//unidiff", - ], - # Depends on having the .js file in source tree but resolve relative paths - # to .js files in the output tree - templated_args = ["--bazel_patch_module_resolver"], -) - nodejs_binary( name = "test.update", data = [ @@ -90,20 +69,6 @@ npm_umd_bundle( package = "@npm//typeorm", ) -jasmine_node_test( - name = "browserify_test", - srcs = ["browserify.spec.js"], - data = [ - ":core-util-is.umd.js", - ":minimist.umd.js", - ":rxjs.umd.js", - ":sinon.umd.js", - ":typeorm.umd.js", - "//internal/npm_install:browserify-wrapped", - "@npm//date-fns:date-fns.umd.js", - ], -) - sh_test( name = "bazel_bin_test", srcs = ["bazel_bin_test.sh"], @@ -113,102 +78,6 @@ sh_test( ], ) -# Test what happens when we depend on the catch-all "node_modules" target rather -# than declare our dependencies on individual npm packages. -[jasmine_node_test( - name = "test_%s" % pkgmgr, - srcs = [ - "coarse.spec.js", - "common.spec.js", - "@fine_grained_deps_%s//:node_modules" % pkgmgr, - ], - env = env, - tags = [ - "no-local-jasmine-deps", - # On Windows this test must be exclusive as it runs outside of the sandbox - # TODO: fix the yarn_install paths on these tests so they occupy different - # directories and can run in parallel outside of the sandbox - "exclusive", - ], - templated_args = select({ - # TODO: make this test work on Windows without patch module resolver - "@bazel_tools//src/conditions:host_windows": ["--bazel_patch_module_resolver"], - "//conditions:default": [], - }), - deps = [ - "@fine_grained_deps_%s//jasmine" % pkgmgr, - "@fine_grained_deps_%s//jasmine-core" % pkgmgr, - ], -) for (pkgmgr, env) in [ - [ - "yarn", - {}, - ], - [ - "npm", - {}, - ], - [ - "yarn_directory_artifacts", - {"DIRECTORY_ARTIFACTS": "1"}, - ], - [ - "npm_directory_artifacts", - {"DIRECTORY_ARTIFACTS": "1"}, - ], -]] - -# Test what happens when only certain NPM packages are in our dependencies. -# These packages and their dependencies are copied to the execroot, but -# the rest are not. -[jasmine_node_test( - name = "fine_grained_test_%s" % pkgmgr, - srcs = [ - "common.spec.js", - "fine.spec.js", - ], - env = env, - tags = [ - "no-local-jasmine-deps", - # On Windows this test must be exclusive as it runs outside of the sandbox - # TODO: fix the yarn_install paths on these tests so they occupy different - # directories and can run in parallel outside of the sandbox - "exclusive", - ], - templated_args = select({ - # TODO: make this test work on Windows without patch module resolver - "@bazel_tools//src/conditions:host_windows": ["--bazel_patch_module_resolver"], - "//conditions:default": [], - }), - deps = [ - "@fine_grained_deps_%s//jasmine" % pkgmgr, - "@fine_grained_deps_%s//jasmine-core" % pkgmgr, - "@fine_grained_deps_%s//ajv" % pkgmgr, - "@fine_grained_deps_%s//typescript" % pkgmgr, - "@fine_grained_deps_%s//rxjs" % pkgmgr, - # Note, test-b depends on test-a@0.0.1 which should be - # layed out at node_modules/test-b/node_modules/test-a - "@fine_grained_deps_%s//@gregmagolan/test-b" % pkgmgr, - ] + (["@fine_grained_deps_%s//local-module" % pkgmgr] if not "DIRECTORY_ARTIFACTS" in env else []), -) for (pkgmgr, env) in [ - [ - "yarn", - {}, - ], - [ - "npm", - {}, - ], - [ - "yarn_directory_artifacts", - {"DIRECTORY_ARTIFACTS": "1"}, - ], - [ - "npm_directory_artifacts", - {"DIRECTORY_ARTIFACTS": "1"}, - ], -]] - # A target to run that ensures yarn_install works for the case that there is # no node_modules/.bin folder since @fine_grained_no_bin does not contain # any npm packages with bins diff --git a/internal/npm_install/test/npm_packages/BUILD.bazel b/internal/npm_install/test/npm_packages/BUILD.bazel index 91b2eb1dbb..af0ef51549 100644 --- a/internal/npm_install/test/npm_packages/BUILD.bazel +++ b/internal/npm_install/test/npm_packages/BUILD.bazel @@ -1,10 +1,3 @@ load("@npm//bazel_workspaces_consistent:index.bzl", "some_rule") -load("//packages/jasmine:index.bzl", "jasmine_node_test") some_rule(name = "test_data") - -jasmine_node_test( - name = "test", - srcs = ["spec.js"], - data = ["test_data"], -) diff --git a/internal/pkg_npm/test/BUILD.bazel b/internal/pkg_npm/test/BUILD.bazel index 24ea29f8cd..72bd5be42a 100644 --- a/internal/pkg_npm/test/BUILD.bazel +++ b/internal/pkg_npm/test/BUILD.bazel @@ -1,5 +1,4 @@ load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm") -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/rollup:index.bzl", "rollup_bundle") load("//packages/typescript:index.bzl", "ts_project") load("@bazel_skylib//rules:write_file.bzl", "write_file") @@ -84,21 +83,6 @@ sh_test( tags = ["no-rbe"], ) -jasmine_node_test( - name = "test", - srcs = ["pkg_npm.spec.js"], - data = [ - ":test_noop2_pkg", - ":test_noop_pkg", - ":test_pkg", - ], - templated_args = [ - "$(rootpath :test_pkg)", - "$(rootpath :test_noop_pkg)", - "$(rootpath :test_noop2_pkg)", - ], -) - genrule( name = "bundle", outs = ["bundle.min.js"], diff --git a/internal/pkg_web/BUILD.bazel b/internal/pkg_web/BUILD.bazel index 6f11d63aaf..2fc73626a8 100644 --- a/internal/pkg_web/BUILD.bazel +++ b/internal/pkg_web/BUILD.bazel @@ -1,10 +1,6 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary") -# BEGIN-INTERNAL -load("//packages/jasmine:index.bzl", "jasmine_node_test") - -# END-INTERNAL package(default_visibility = ["//visibility:public"]) exports_files(["pkg_web.bzl"]) @@ -26,19 +22,6 @@ nodejs_binary( templated_args = ["--bazel_patch_module_resolver"], ) -# BEGIN-INTERNAL -jasmine_node_test( - name = "assembler_test", - srcs = ["assembler_spec.cjs"], - # TODO: figure out why isbinaryfile isn't resolved properly - templated_args = ["--bazel_patch_module_resolver"], - deps = [ - "assembler.cjs", - "//third_party/github.com/gjtorikian/isBinaryFile", - ], -) - -# END-INTERNAL filegroup( name = "package_contents", srcs = glob( diff --git a/internal/pkg_web/test/BUILD.bazel b/internal/pkg_web/test/BUILD.bazel index 6852f42b26..e6fcaa6c17 100644 --- a/internal/pkg_web/test/BUILD.bazel +++ b/internal/pkg_web/test/BUILD.bazel @@ -1,6 +1,5 @@ load("@build_bazel_rules_nodejs//:index.bzl", "pkg_web") load("@npm//@babel/cli:index.bzl", "babel") -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/rollup:index.bzl", "rollup_bundle") load("//packages/typescript:index.bzl", "ts_project") @@ -51,10 +50,4 @@ pkg_web( substitutions = { "${version}": "{BUILD_SCM_VERSION}", }, -) - -jasmine_node_test( - name = "test", - srcs = ["spec.js"], - data = [":pkg"], -) +) \ No newline at end of file diff --git a/internal/pkg_web/test2/BUILD.bazel b/internal/pkg_web/test2/BUILD.bazel index bfad0f5c73..3e08586252 100644 --- a/internal/pkg_web/test2/BUILD.bazel +++ b/internal/pkg_web/test2/BUILD.bazel @@ -1,6 +1,5 @@ load("@build_bazel_rules_nodejs//:index.bzl", "pkg_web") load("@npm//@babel/cli:index.bzl", "babel") -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/rollup:index.bzl", "rollup_bundle") rollup_bundle( @@ -56,16 +55,4 @@ pkg_web( ["//internal/pkg_web/test2/rel-exports:rel-bin-" + e for e in EXTS] + ["//internal/pkg_web/test2/rel-exports:rel-gen-" + e for e in EXTS] + ["//internal/pkg_web/test2/rel-exports:rel-file." + e for e in EXTS], -) - -jasmine_node_test( - name = "test", - srcs = ["spec.js"], - data = [ - "index_golden.html_", - ":pkg", - ], - tags = [ - "fix-windows", - ], -) +) \ No newline at end of file diff --git a/packages/index.bzl b/packages/index.bzl index addc673afe..5ed46bdc73 100644 --- a/packages/index.bzl +++ b/packages/index.bzl @@ -17,7 +17,6 @@ NPM_PACKAGES = ["@bazel/%s" % pkg for pkg in [ "create", - "jasmine", "rollup", "runfiles", "typescript", diff --git a/packages/jasmine/BUILD.bazel b/packages/jasmine/BUILD.bazel deleted file mode 100644 index a5ad4d6b7b..0000000000 --- a/packages/jasmine/BUILD.bazel +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 2017 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -load("@bazel_skylib//:bzl_library.bzl", "bzl_library") -load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "nodejs_test") -load("@build_bazel_rules_nodejs//:tools/defaults.bzl", "pkg_npm") -load("@build_bazel_rules_nodejs//tools/stardoc:index.bzl", "stardoc") -load("//third_party/github.com/bazelbuild/bazel-skylib:rules/copy_file.bzl", "copy_file") - -package(default_visibility = ["//visibility:public"]) - -exports_files(["jasmine_runner.js"]) - -bzl_library( - name = "bzl", - srcs = glob(["*.bzl"]), - deps = [ - "@bazel_skylib//lib:types", - "@build_bazel_rules_nodejs//:bzl", - "@build_bazel_rules_nodejs//internal/common:bzl", - "@build_bazel_rules_nodejs//internal/node:bzl", - "@rules_nodejs//nodejs:bzl", - ], -) - -stardoc( - name = "docs", - out = "README.md", - input = "index.bzl", - tags = ["fix-windows"], - deps = [ - ":bzl", - "//packages/jasmine/private:bzl", - ], -) - -nodejs_test( - name = "test", - data = [ - "README.md", - "docs_test.js", - ], - entry_point = ":docs_test.js", - tags = [ - "fix-windows", - ], -) - -js_library( - name = "jasmine", - package_name = "@bazel/jasmine", - srcs = [ - "index.js", - "jasmine_runner.js", - ], -) - -copy_file( - name = "npm_version_check", - src = "//internal:npm_version_check.js", - out = ":npm_version_check.js", -) - -pkg_npm( - name = "npm_package", - package_name = "@bazel/jasmine", - srcs = [ - "index.bzl", - "index.js", - "jasmine_node_test.bzl", - "jasmine_runner.js", - "package.json", - ], - build_file_content = "", - deps = [ - ":README.md", - ":npm_version_check", - ], -) diff --git a/packages/jasmine/docs_test.js b/packages/jasmine/docs_test.js deleted file mode 100644 index 64c4f65a9f..0000000000 --- a/packages/jasmine/docs_test.js +++ /dev/null @@ -1,6 +0,0 @@ -const actual = require('fs').readFileSync( - process.env['TEST_SRCDIR'] + '/build_bazel_rules_nodejs/packages/jasmine/README.md', - {encoding: 'utf-8'}); -if (actual.indexOf('') >= 0) { - throw new Error('Found in README.md'); -} diff --git a/packages/jasmine/index.bzl b/packages/jasmine/index.bzl deleted file mode 100644 index 2403e1cce9..0000000000 --- a/packages/jasmine/index.bzl +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 2019 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -""" -# Jasmine rules for Bazel - -The Jasmine rules run tests under the Jasmine framework with Bazel. - -## Installation - -Add the `@bazel/jasmine` npm package to your `devDependencies` in `package.json`. -""" - -load(":jasmine_node_test.bzl", _jasmine_node_test = "jasmine_node_test") - -jasmine_node_test = _jasmine_node_test diff --git a/packages/jasmine/index.js b/packages/jasmine/index.js deleted file mode 100644 index 3dcd1c1c02..0000000000 --- a/packages/jasmine/index.js +++ /dev/null @@ -1,20 +0,0 @@ -const jasmineCore = require('jasmine-core'); - -// a boot function for use in user bootstrap code: -// require('@bazel/jasmine').boot() -function boot() { - jasmineCore.boot(jasmineCore); -} -exports.boot = boot; - -// re-export jasmine and its transitive dep jasmine-core -exports.jasmine = require('jasmine'); -exports.jasmineCore = jasmineCore; - -let JUnitXmlReporter = null; -try { - JUnitXmlReporter = require('jasmine-reporters').JUnitXmlReporter; -} catch (err) { - // fail quietly if jasmine-reporters is not available -} -exports.JUnitXmlReporter = JUnitXmlReporter; diff --git a/packages/jasmine/jasmine_node_test.bzl b/packages/jasmine/jasmine_node_test.bzl deleted file mode 100644 index 8700683537..0000000000 --- a/packages/jasmine/jasmine_node_test.bzl +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright 2017 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""NodeJS testing - -These rules let you run tests outside of a browser. This is typically faster -than launching a test in Karma, for example. -""" - -load("@rules_nodejs//nodejs:providers.bzl", "JSModuleInfo") -load("//packages/jasmine/private:index.bzl", "bazel_jasmine_runner_test") -load("@build_bazel_rules_nodejs//internal/node:node.bzl", nodejs_test = "nodejs_test_macro") -load("@build_bazel_rules_nodejs//internal/common:is_js_file.bzl", "is_javascript_file") - -def _js_sources_impl(ctx): - depsets = [] - for src in ctx.attr.srcs: - if JSModuleInfo in src: - provider = src[JSModuleInfo] - files = provider.direct_sources if ctx.attr.use_direct_specs else provider.sources - depsets.append(files) - if hasattr(src, "files"): - depsets.append(src.files) - sources = depset(transitive = depsets) - - ctx.actions.write(ctx.outputs.manifest, "".join([ - f.short_path + "\n" - for f in sources.to_list() - if is_javascript_file(f) - ])) - - return [DefaultInfo(files = sources)] - -"""Rule to get js sources from deps. - -Outputs a manifest file with the sources listed. -""" -_js_sources = rule( - implementation = _js_sources_impl, - attrs = { - "srcs": attr.label_list( - allow_files = True, - ), - "use_direct_specs": attr.bool(), - }, - outputs = { - "manifest": "%{name}.MF", - }, -) - -def jasmine_node_test( - name, - srcs = [], - data = [], - deps = [], - expected_exit_code = 0, - tags = [], - config_file = None, - use_direct_specs = None, - # TODO(6.0): remove these two attributes, users should never interact with them - jasmine = None, - jasmine_entry_point = None, - **kwargs): - """Runs tests in NodeJS using the Jasmine test runner. - - Detailed XML test results are found in the standard `bazel-testlogs` - directory. This may be symlinked in your workspace. - See https://docs.bazel.build/versions/main/output_directories.html - - To debug the test, see debugging notes in `nodejs_test`. - - Args: - name: Name of the resulting label - srcs: JavaScript source files containing Jasmine specs - data: Runtime dependencies which will be loaded while the test executes - deps: Other targets which produce JavaScript, such as ts_project - expected_exit_code: The expected exit code for the test. - tags: Bazel tags applied to test - config_file: (experimental) label of a file containing Jasmine JSON config. - - Note that not all configuration options are honored, and - we expect some strange feature interations. - For example, the filter for which files are instrumented for - code coverage doesn't understand the spec_files setting in the config. - - See https://jasmine.github.io/setup/nodejs.html#configuration - - use_direct_specs: Limits the list of specs added to the execution (test suite) to direct sources. - - Note that this is a bug fix opt-in flag, which will be the default - behavior in the next major release. - - More info: https://github.com/bazelbuild/rules_nodejs/pull/2576 - - jasmine: A label providing the `@bazel/jasmine` npm dependency. - Intended for internal use only. - - jasmine_entry_point: A label providing the `@bazel/jasmine` entry point. - This is a custom wrapper which adds features like sharding and ibazel support. - Intended for internal use only. - - **kwargs: Remaining arguments are passed to the test rule - """ - if kwargs.pop("coverage", False): - fail("The coverage attribute has been removed, run your target with \"bazel coverage\" instead") - - _js_sources( - name = "%s_js_sources" % name, - srcs = srcs if use_direct_specs else (srcs + deps), - testonly = 1, - tags = tags, - use_direct_specs = use_direct_specs, - ) - - all_data = data + srcs + deps - - if jasmine != None: - all_data.append(jasmine) - - # BEGIN-INTERNAL - # Only used when running tests in the rules_nodejs repo. - # Avoid adding duplicate deps though, some rules use this from source and declared the dep - if not "@npm//jasmine" in all_data and not str(Label("@npm//jasmine")) in all_data and not "no-local-jasmine-deps" in tags: - all_data.extend(["@npm//jasmine", "@npm//jasmine-reporters", "@npm//c8"]) - - # END-INTERNAL - all_data.append(":%s_js_sources.MF" % name) - all_data.append(Label("@build_bazel_rules_nodejs//third_party/github.com/bazelbuild/bazel/tools/bash/runfiles")) - - # jasmine_runner.js consumes the first 3 args. - # The remaining target templated_args will be passed through to jasmine or - # specs to consume. - templated_args = [ - "$(rootpath :%s_js_sources.MF)" % name, - "$(rootpath %s)" % config_file if config_file else "--noconfig", - ] + kwargs.pop("templated_args", []) - - if config_file: - # Calculate a label relative to the user's BUILD file - pkg = Label("%s//%s:__pkg__" % (native.repository_name(), native.package_name())) - all_data.append(pkg.relative(config_file)) - - kwargs = dict( - name = name, - data = all_data, - templated_args = templated_args, - testonly = 1, - expected_exit_code = expected_exit_code, - tags = tags, - **kwargs - ) - - if jasmine_entry_point: - nodejs_test( - entry_point = jasmine_entry_point, - **kwargs - ) - else: - bazel_jasmine_runner_test(**kwargs) diff --git a/packages/jasmine/jasmine_runner.js b/packages/jasmine/jasmine_runner.js deleted file mode 100644 index a05ee233a2..0000000000 --- a/packages/jasmine/jasmine_runner.js +++ /dev/null @@ -1,224 +0,0 @@ -const fs = require('fs'); -const path = require('path'); -const bazelJasmine = require('@bazel/jasmine'); -const runfiles = require(process.env['BAZEL_NODE_RUNFILES_HELPER']); - -const JasmineRunner = bazelJasmine.jasmine; -const JUnitXmlReporter = bazelJasmine.JUnitXmlReporter; - -let jasmineCore = null -if (global.jasmine) { - // global.jasmine has been initialized which means a bootstrap script - // has already required `jasmine-core` and called jasmineCore.boot() - jasmineCore = global.jasmineCore; - if (!jasmineCore) { - jasmineCore = bazelJasmine.jasmineCore; - } - // Override the jasmineCore boot function so that the jasmine - // runner gets the already initialize jasmine and its shared environment - jasmineCore.boot = function() { - return global.jasmine - }; -} - -const UTF8 = { - encoding: 'utf-8' -}; - -// These exit codes are handled specially by Bazel: -// https://github.com/bazelbuild/bazel/blob/486206012a664ecb20bdb196a681efc9a9825049/src/main/java/com/google/devtools/build/lib/util/ExitCode.java#L44 -const BAZEL_EXIT_SUCCESS = 0; -const BAZEL_EXIT_TESTS_FAILED = 3; -const BAZEL_EXIT_NO_TESTS_FOUND = 4; -const BAZEL_EXIT_INTERRUPTED = 8; - -// Test sharding support -// See https://docs.bazel.build/versions/main/test-encyclopedia.html#role-of-the-test-runner -const TOTAL_SHARDS = Number(process.env['TEST_TOTAL_SHARDS']); -const SHARD_INDEX = Number(process.env['TEST_SHARD_INDEX']); -// Tell Bazel that this test runner supports sharding by updating the last modified date of the -// magic file -if (TOTAL_SHARDS) { - fs.open(process.env['TEST_SHARD_STATUS_FILE'], 'w', (err, fd) => { - if (err) throw err; - fs.close(fd, err => { - if (err) throw err; - }); - }); -} - -// Set the StackTraceLimit to infinity. This will make stack capturing slower, but more useful. -// Since we are running tests having proper stack traces is very useful and should be always set to -// the maximum (See: https://nodejs.org/api/errors.html#errors_error_stacktracelimit) -Error.stackTraceLimit = Infinity; - -const IS_TEST_FILE = /[^a-zA-Z0-9](spec|test)\.(mjs|cjs|js)$/i; -const IS_NODE_MODULE = /\/node_modules\// - -// We process arguments by splicing them out of the process.argv -// Users could set their own templated_args on their test, then -// the tested code might process the argv -// So it shouldn't see these Bazel-specific ones -function readArg() { - return process.argv.splice(2, 1)[0]; -} - -async function main(args) { - if (args.length < 2) { - throw new Error('expected argument missing'); - } - - // first args is always the path to the manifest - const manifest = runfiles.resolveWorkspaceRelative(readArg()); - // config file is the next arg - const configFile = readArg(); - - const jrunner = new JasmineRunner({jasmineCore: jasmineCore}); - if (configFile !== '--noconfig') { - jrunner.loadConfigFile(runfiles.resolveWorkspaceRelative(configFile)); - } - fs.readFileSync(manifest, UTF8) - .split('\n') - .filter(l => l.length > 0) - // Filter out files from node_modules - .filter(f => !IS_NODE_MODULE.test(f)) - // Use runfiles resolve to resolve the file path that - // bazel passes to the runner to its absolute path - .map(f => runfiles.resolveWorkspaceRelative(f)) - // Filter here so that only files ending in `spec.js` and `test.js` - // are added to jasmine as spec files. This is important as other - // deps such as "@npm//typescript" if executed may cause the test to - // fail or have unexpected side-effects. "@npm//typescript" would - // try to execute tsc, print its help, and process.exit(1) - .filter(f => IS_TEST_FILE.test(f)) - .forEach(f => jrunner.addSpecFile(f)); - - if (JUnitXmlReporter) { - const testOutputFile = process.env.XML_OUTPUT_FILE; - if (testOutputFile) { - jrunner.addReporter(new JUnitXmlReporter({ - filePrefix: path.basename(testOutputFile), - savePath: path.dirname(testOutputFile), - consolidate: true, - consolidateAll: true - })); - - // addReporter throws away the default console reporter - // so we need to add it back - jrunner.configureDefaultReporter({}); - } else { - console.warn('Skipping XML Test Result: $XML_OUTPUT_FILE not found.') - } - } - - if (TOTAL_SHARDS) { - // Since we want to collect all the loaded specs, we have to do this after - // loadSpecs() in jasmine/lib/jasmine.js - // However, we must add our filter before the runnable specs are calculated - // so that our filtering is applied. - // The jasmineStarted() callback is called by the "inner" execute function - // in jasmine-core, which is too late. - // Patch the inner execute function to do our filtering first. - const env = jasmine.getEnv(); - const originalExecute = env.execute.bind(env); - env.execute = () => { - const allSpecs = getAllSpecs(env); - // Partition the specs among the shards. - // This ensures that the specs are evenly divided over the shards. - // Also it keeps specs in the same order and prefers to keep specs grouped together. - // This way, common beforeEach/beforeAll setup steps aren't repeated as much over different - // shards. - const start = allSpecs.length * SHARD_INDEX / TOTAL_SHARDS; - const end = allSpecs.length * (SHARD_INDEX + 1) / TOTAL_SHARDS; - const enabledSpecs = allSpecs.slice(start, end); - env.configure({specFilter: (s) => enabledSpecs.includes(s.id)}); - - return originalExecute(); - }; - - // Special case! - // To allow us to test sharding, always run the specs in the order they are declared - if (process.env['TEST_WORKSPACE'] === 'build_bazel_rules_nodejs' && - process.env['TEST_TARGET'].startsWith('//packages/jasmine/test:sharding_')) { - jrunner.randomizeTests(false); - } - } - - // TODO(6.0): remove support for deprecated versions of Jasmine that use the old API & - // remember to update the `peerDependencies` as well. - // Jasmine versions prior to 4.0.0 should use the old API. - if (jrunner.coreVersion().charAt(0) !== '4') { - console.warn(`DEPRECATED: Support for Jasmine versions prior to '4.0.x' is deprecated in '@bazel/jasmine'.`); - - // Old Jasmine API. - let noSpecsFound = true; - jrunner.addReporter({ - specDone: () => { - noSpecsFound = false - }, - }); - - jrunner.onComplete((passed) => { - let exitCode = passed ? BAZEL_EXIT_SUCCESS : BAZEL_EXIT_TESTS_FAILED; - if (noSpecsFound) exitCode = BAZEL_EXIT_NO_TESTS_FOUND; - - process.exit(exitCode); - }); - - // addReporter throws away the default console reporter - // so we need to add it back - jrunner.configureDefaultReporter({}); - await jrunner.execute(); - - return BAZEL_EXIT_SUCCESS; - } - - // New Jasmine API. - jrunner.exitOnCompletion = false; - const { overallStatus, incompleteReason } = await jrunner.execute(); - - switch (overallStatus) { - case 'passed': - return BAZEL_EXIT_SUCCESS; - case 'incomplete': - return incompleteReason === 'No specs found' ? BAZEL_EXIT_NO_TESTS_FOUND : BAZEL_EXIT_INTERRUPTED; - case 'failed': - default: - return BAZEL_EXIT_TESTS_FAILED; - } -} - -function getAllSpecs(jasmineEnv) { - const specs = []; - - // Walk the test suite tree depth first and collect all test specs - const stack = [jasmineEnv.topSuite()]; - let currentNode; - while (currentNode = stack.pop()) { - if (!currentNode) { - continue; - } - - const { children, id } = currentNode; - if (Array.isArray(children)) { - // This is a suite. - stack.push(...children); - } else if (id) { - // This is a spec. - specs.unshift(currentNode); - } - } - - return specs.map(s => s.id); -} - -if (require.main === module) { - (async () => { - try { - process.exitCode = await main(process.argv.slice(2)); - } catch (error) { - console.error('[jasmine_runner.js] An error has been reported:', error); - process.exitCode = 1; - } - })(); -} diff --git a/packages/jasmine/package.json b/packages/jasmine/package.json deleted file mode 100644 index f538ad0b76..0000000000 --- a/packages/jasmine/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@bazel/jasmine", - "description": "Run Jasmine tests under Bazel", - "license": "Apache-2.0", - "version": "0.0.0-PLACEHOLDER", - "repository": { - "type" : "git", - "url" : "https://github.com/bazelbuild/rules_nodejs.git", - "directory": "packages/jasmine" - }, - "bugs": { - "url": "https://github.com/bazelbuild/rules_nodejs/issues" - }, - "keywords": [ - "jasmine", - "bazel" - ], - "bin": { - "bazel-jasmine-runner": "jasmine_runner.js" - }, - "main": "index.js", - "dependencies": { - "jasmine-reporters": "~2.5.0", - "c8": "~7.5.0" - }, - "//1": "jasmine depends on jasmine-core, however since we require() it we need it hoisted to the top", - "//2": "so we include jasmine-core explicitly as a peerDep", - "//3": "version 2.99.0 is the lower bound only because that's what our e2e/jasmine test verifies", - "peerDependencies": { - "jasmine": ">=2.99.0", - "jasmine-core": ">=2.99.0" - }, - "scripts": { - "postinstall": "node npm_version_check.js" - } -} diff --git a/packages/jasmine/private/BUILD.bazel b/packages/jasmine/private/BUILD.bazel deleted file mode 100644 index d3f93dfee9..0000000000 --- a/packages/jasmine/private/BUILD.bazel +++ /dev/null @@ -1,10 +0,0 @@ -load("@bazel_skylib//:bzl_library.bzl", "bzl_library") - -bzl_library( - name = "bzl", - srcs = glob(["*.bzl"]), - visibility = ["//packages/jasmine:__pkg__"], - deps = [ - "@build_bazel_rules_nodejs//internal/node:bzl", - ], -) diff --git a/packages/jasmine/private/index.bzl b/packages/jasmine/private/index.bzl deleted file mode 100644 index 632584ac74..0000000000 --- a/packages/jasmine/private/index.bzl +++ /dev/null @@ -1,13 +0,0 @@ -""" -This file mimics what we would get when we install a npm package with bin entries. Only used when jasmine_node_test is used directly -from rnj sources and should not be published. -""" - -load("@build_bazel_rules_nodejs//internal/node:node.bzl", nodejs_test = "nodejs_test_macro") - -def bazel_jasmine_runner_test(**kwargs): - nodejs_test( - entry_point = "//packages/jasmine:jasmine_runner.js", - data = ["//packages/jasmine"] + kwargs.pop("data", []), - **kwargs - ) diff --git a/packages/jasmine/test/BUILD.bazel b/packages/jasmine/test/BUILD.bazel deleted file mode 100644 index b37a2f94e8..0000000000 --- a/packages/jasmine/test/BUILD.bazel +++ /dev/null @@ -1,249 +0,0 @@ -load("//:index.bzl", "js_library") -load("//internal/common:copy_to_bin.bzl", "copy_to_bin") -load("//packages/jasmine:index.bzl", "jasmine_node_test") -load("//packages/typescript:index.bzl", "ts_project") - -_JS_EXTENSIONS = [ - "js", - "cjs", - "mjs", -] - -[ - jasmine_node_test( - name = "underscore_spec_%s_test" % ext, - srcs = ["foo_spec.%s" % ext], - ) - for ext in _JS_EXTENSIONS -] - -# Verify that a bootstrap script does not break the test -[ - jasmine_node_test( - name = "underscore_spec_%s_bootstrap_test" % ext, - srcs = ["foo_spec.%s" % ext], - data = ["bootstrap.js"], - templated_args = ["--node_options=--require=$$(rlocation $(location :bootstrap.js))"], - ) - for ext in _JS_EXTENSIONS -] - -[ - jasmine_node_test( - name = "underscore_test_%s_test" % ext, - srcs = ["foo_test.%s" % ext], - ) - for ext in _JS_EXTENSIONS -] - -[ - jasmine_node_test( - name = "dot_spec_%s_test" % ext, - srcs = ["foo.spec.%s" % ext], - ) - for ext in _JS_EXTENSIONS -] - -[ - jasmine_node_test( - name = "dot_test_%s_test" % ext, - srcs = ["foo.test.%s" % ext], - ) - for ext in _JS_EXTENSIONS -] - -jasmine_node_test( - name = "sharding_test", - srcs = ["sharded_test.js"], - shard_count = 3, -) - -copy_to_bin( - name = "generated_require_spec", - srcs = ["generated_require.spec.js"], -) - -jasmine_node_test( - name = "generated_require_spec_test", - # Use the generated_require.spec.js from the output tree - srcs = [":generated_require_spec"], - data = ["test.json"], - templated_args = select({ - # TODO: make this test work on Windows without patch module resolver - "@bazel_tools//src/conditions:host_windows": ["--bazel_patch_module_resolver"], - "//conditions:default": [], - }), -) - -copy_to_bin( - name = "generated_runfiles_spec", - srcs = ["generated_runfiles.spec.js"], -) - -jasmine_node_test( - name = "generated_runfiles_spec_test", - # Use the generated_runfiles.spec.js from the output tree - srcs = [":generated_runfiles_spec"], - data = ["test.json"], -) - -# Verify that a bootstrap script does not break a sharded test -jasmine_node_test( - name = "sharding_bootstrap_test", - srcs = ["sharded_test.js"], - data = ["bootstrap.js"], - shard_count = 3, - templated_args = ["--node_options=--require=$$(rlocation $(location :bootstrap.js))"], -) - -jasmine_node_test( - name = "failing_sharding_test", - srcs = ["failing_sharded_test.js"], - expected_exit_code = 3, - shard_count = 2, -) - -# Verify that a bootstrap script does not break a failing sharded test -jasmine_node_test( - name = "failing_sharding_bootstrap_test", - srcs = ["failing_sharded_test.js"], - data = ["bootstrap.js"], - expected_exit_code = 3, - shard_count = 2, - templated_args = ["--node_options=--require=$$(rlocation $(location :bootstrap.js))"], -) - -# Verify that a bootstrap script does not break a failing sharded test -jasmine_node_test( - name = "failing_sharding_bootstrap_fail_test", - srcs = ["failing_sharded_test.js"], - data = ["bootstrap_fail.js"], - expected_exit_code = 33, - shard_count = 2, - templated_args = ["--node_options=--require=$$(rlocation $(location :bootstrap_fail.js))"], -) - -jasmine_node_test( - name = "filtering_test", - srcs = ["filtering_test.js"], - # This test will fail because usage of `fit` and `fdescribe` cause Jasmine - # to return a 'incomplete' status - # TODO(alexeagle): find a way to assert that the right things were filtered - # maybe sniff the stdout for Ran 1 of 3 specs - # or change the exit code for Jasmine 'incomplete' status - expected_exit_code = 3, -) - -ts_project( - name = "coverage_test_srcs", - srcs = [ - "coverage_source.ts", - "coverage_source_uncovered.ts", - ], - tsconfig = {}, -) - -jasmine_node_test( - name = "coverage_test", - srcs = [ - "coverage.spec.js", - ":coverage_test_srcs", - ], - # TODO: fails under --config=no-runfiles without this flag - templated_args = ["--bazel_patch_module_resolver"], -) - -jasmine_node_test( - name = "args_test", - srcs = [ - "args_test.js", - "dynamic_import.js", - ], - args = [ - # TODO: investigate why this fails without the patched require() function - "--bazel_patch_module_resolver", - # the --node_options arg will be consumed by the node launcher - "--node_options=--experimental-modules", - # the remaining args should be passed to the spec - "arg1", - "arg2", - "arg3", - ], -) - -jasmine_node_test( - name = "templated_args_test", - srcs = [ - "args_test.js", - "dynamic_import.js", - ], - args = [ - # args should be passed after templated_args - "arg3", - ], - templated_args = [ - # the --node_options templated arg will be consumed by the node launcher - "--node_options=--experimental-modules", - # the remaining args should be passed to the spec - "arg1", - "arg2", - ], -) - -# We have no srcs[] here because we set specs in the config file -jasmine_node_test( - name = "config_file_test", - config_file = "test_config_file.json", - # The file isn't named following our usual conventions - # but since it's configured in the json config file - # Jasmine will still load it - data = ["test_config_file.js"], - # TODO(alexeagle): on Windows CI we get no specs found - # Maybe Jasmine doesn't normalize the slashes in the config - tags = ["fix-windows"], -) - -# Verify that the error code is propogated out from a failing spec -jasmine_node_test( - name = "fail_test", - srcs = ["fail.spec.js"], - expected_exit_code = 3, -) - -# Verify that the error code is propogated out from a failing spec -# if there is a successful bootstrap script -jasmine_node_test( - name = "fail_bootstrap_test", - srcs = ["fail.spec.js"], - data = ["bootstrap.js"], - expected_exit_code = 3, - templated_args = ["--node_options=--require=$$(rlocation $(location :bootstrap.js))"], -) - -# Verify that the error code is propogated out from a failing bootstrap script -jasmine_node_test( - name = "fail_bootstrap_fail_test", - srcs = ["fail.spec.js"], - data = ["bootstrap_fail.js"], - expected_exit_code = 33, - templated_args = ["--node_options=--require=$$(rlocation $(location :bootstrap_fail.js))"], -) - -jasmine_node_test( - name = "stack_test", - srcs = ["stack.spec.js"], - deps = [":fail_test"], -) - -# Verify that transitive specs are not added to the execution -js_library( - name = "lib_with_fail_spec", - srcs = ["fail.spec.js"], -) - -jasmine_node_test( - name = "transitive_spec_test", - srcs = ["foo.spec.js"], - use_direct_specs = True, - deps = [":lib_with_fail_spec"], -) diff --git a/packages/jasmine/test/args_test.js b/packages/jasmine/test/args_test.js deleted file mode 100644 index 6c236c8a23..0000000000 --- a/packages/jasmine/test/args_test.js +++ /dev/null @@ -1,13 +0,0 @@ -describe('args', () => { - it('should pass through other templated_args', async () => { - // args that are not consumed by the node launcher should be passed through - // to the spec - expect(process.argv.slice(2)).toEqual(['arg1', 'arg2', 'arg3']); - }); - - it('should apply --node_options in templated_args', async () => { - // without --node_options=--experimental-modules this will fail - const dynamicImport = await import('./dynamic_import.js'); - dynamicImport.default.hello(); - }); -}); diff --git a/packages/jasmine/test/bootstrap.js b/packages/jasmine/test/bootstrap.js deleted file mode 100644 index ce9683416d..0000000000 --- a/packages/jasmine/test/bootstrap.js +++ /dev/null @@ -1 +0,0 @@ -global.bootstrapped = true; \ No newline at end of file diff --git a/packages/jasmine/test/bootstrap_fail.js b/packages/jasmine/test/bootstrap_fail.js deleted file mode 100644 index 6b8da80f2c..0000000000 --- a/packages/jasmine/test/bootstrap_fail.js +++ /dev/null @@ -1 +0,0 @@ -process.exit(33); \ No newline at end of file diff --git a/packages/jasmine/test/coverage.spec.js b/packages/jasmine/test/coverage.spec.js deleted file mode 100644 index be150a15ac..0000000000 --- a/packages/jasmine/test/coverage.spec.js +++ /dev/null @@ -1,10 +0,0 @@ -const { isString } = require('./coverage_source'); - -describe('coverage function', () => { - it('should cover one branch', () => { - expect(isString(2)).toBe(false); - }); - it('should cover the other branch', () => { - expect(isString('some string')).toBe(true); - }); -}); diff --git a/packages/jasmine/test/coverage_source.ts b/packages/jasmine/test/coverage_source.ts deleted file mode 100644 index 45f569b949..0000000000 --- a/packages/jasmine/test/coverage_source.ts +++ /dev/null @@ -1,7 +0,0 @@ -export function isString(input: string) { - if (typeof input === 'string') { - return true; - } else { - return false; - } -} diff --git a/packages/jasmine/test/coverage_source_uncovered.ts b/packages/jasmine/test/coverage_source_uncovered.ts deleted file mode 100644 index a40d272795..0000000000 --- a/packages/jasmine/test/coverage_source_uncovered.ts +++ /dev/null @@ -1,6 +0,0 @@ -// noting in this file should be required, so we can test the c8 feature all: true -// which will pick up files that aren't directly referenced by test files -// but are added to coverage as empty coverage -export function notCalled(input: number) { - return input * 13; -} \ No newline at end of file diff --git a/packages/jasmine/test/dynamic_import.js b/packages/jasmine/test/dynamic_import.js deleted file mode 100644 index 9f6d68630c..0000000000 --- a/packages/jasmine/test/dynamic_import.js +++ /dev/null @@ -1,3 +0,0 @@ -exports.hello = function hello() { - console.log('hello') -}; diff --git a/packages/jasmine/test/esm/BUILD.bazel b/packages/jasmine/test/esm/BUILD.bazel deleted file mode 100644 index bbd1c1bfa7..0000000000 --- a/packages/jasmine/test/esm/BUILD.bazel +++ /dev/null @@ -1,6 +0,0 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") - -jasmine_node_test( - name = "jasmine_import", - srcs = ["jasmine_import.spec.mjs"], -) diff --git a/packages/jasmine/test/esm/jasmine_import.spec.mjs b/packages/jasmine/test/esm/jasmine_import.spec.mjs deleted file mode 100644 index 068b77d2a6..0000000000 --- a/packages/jasmine/test/esm/jasmine_import.spec.mjs +++ /dev/null @@ -1,6 +0,0 @@ - -describe('spec in file ending with *.mjs', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/fail.spec.js b/packages/jasmine/test/fail.spec.js deleted file mode 100644 index 9405daee26..0000000000 --- a/packages/jasmine/test/fail.spec.js +++ /dev/null @@ -1,3 +0,0 @@ -describe('jasmine_node_fail_test', () => { - it('should fail', () => {expect(0).toEqual(1)}); -}); diff --git a/packages/jasmine/test/failing_sharded_test.js b/packages/jasmine/test/failing_sharded_test.js deleted file mode 100644 index 24c7e308f5..0000000000 --- a/packages/jasmine/test/failing_sharded_test.js +++ /dev/null @@ -1,8 +0,0 @@ -describe('test failures with sharding', () => { - it('should fail', () => { - expect(false).toBeTruthy(); - }); - it('should fail', () => { - expect(false).toBeTruthy(); - }); -}); diff --git a/packages/jasmine/test/filtering_test.js b/packages/jasmine/test/filtering_test.js deleted file mode 100644 index 56b23e4a16..0000000000 --- a/packages/jasmine/test/filtering_test.js +++ /dev/null @@ -1,15 +0,0 @@ -describe('filtering', () => { - describe('exclusions', () => { - xit('should not run this one', () => { - fail('Ran an excluded (xit) test'); - }); - }); - describe('focusing', () => { - fit('should run this one', () => { - expect(true).toBeTruthy(); - }); - it('should not run this one', () => { - fail('ran a test that was not focused'); - }); - }); -}); diff --git a/packages/jasmine/test/foo.spec.cjs b/packages/jasmine/test/foo.spec.cjs deleted file mode 100644 index b0f7bd50e8..0000000000 --- a/packages/jasmine/test/foo.spec.cjs +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with .spec.cjs', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo.spec.js b/packages/jasmine/test/foo.spec.js deleted file mode 100644 index fefb7656a1..0000000000 --- a/packages/jasmine/test/foo.spec.js +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with .spec.js', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo.spec.mjs b/packages/jasmine/test/foo.spec.mjs deleted file mode 100644 index c5689425f5..0000000000 --- a/packages/jasmine/test/foo.spec.mjs +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with .spec.mjs', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo.test.cjs b/packages/jasmine/test/foo.test.cjs deleted file mode 100644 index 0675482cb8..0000000000 --- a/packages/jasmine/test/foo.test.cjs +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with .test.cjs', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo.test.js b/packages/jasmine/test/foo.test.js deleted file mode 100644 index 53c327fdf3..0000000000 --- a/packages/jasmine/test/foo.test.js +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with .test.js', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo.test.mjs b/packages/jasmine/test/foo.test.mjs deleted file mode 100644 index dc8d660685..0000000000 --- a/packages/jasmine/test/foo.test.mjs +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with .test.mjs', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo_spec.cjs b/packages/jasmine/test/foo_spec.cjs deleted file mode 100644 index be97dfaa09..0000000000 --- a/packages/jasmine/test/foo_spec.cjs +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with _spec.cjs', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo_spec.js b/packages/jasmine/test/foo_spec.js deleted file mode 100644 index 4ceb215966..0000000000 --- a/packages/jasmine/test/foo_spec.js +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with _spec.js', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo_spec.mjs b/packages/jasmine/test/foo_spec.mjs deleted file mode 100644 index 5c776a26c8..0000000000 --- a/packages/jasmine/test/foo_spec.mjs +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with _spec.mjs', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo_test.cjs b/packages/jasmine/test/foo_test.cjs deleted file mode 100644 index b97a416102..0000000000 --- a/packages/jasmine/test/foo_test.cjs +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with _test.cjs', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo_test.js b/packages/jasmine/test/foo_test.js deleted file mode 100644 index 1c30abc922..0000000000 --- a/packages/jasmine/test/foo_test.js +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with _test.js', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/foo_test.mjs b/packages/jasmine/test/foo_test.mjs deleted file mode 100644 index 5ab7e765fb..0000000000 --- a/packages/jasmine/test/foo_test.mjs +++ /dev/null @@ -1,5 +0,0 @@ -describe('spec in file ending with _test.mjs', () => { - it('should run', () => { - expect(true).toBe(true); - }); -}); diff --git a/packages/jasmine/test/generated_require.spec.js b/packages/jasmine/test/generated_require.spec.js deleted file mode 100644 index 12804e1f5d..0000000000 --- a/packages/jasmine/test/generated_require.spec.js +++ /dev/null @@ -1,10 +0,0 @@ -describe('output tree spec resolves', () => { - it('should resolve runfiles relative', () => { - try { - const json = require('./test.json'); - expect(json.foo).toBe('bar'); - } catch (_) { - fail(`'./test.json' should be resolved`); - } - }); -}); diff --git a/packages/jasmine/test/generated_runfiles.spec.js b/packages/jasmine/test/generated_runfiles.spec.js deleted file mode 100644 index 31911214d4..0000000000 --- a/packages/jasmine/test/generated_runfiles.spec.js +++ /dev/null @@ -1,12 +0,0 @@ -const runfiles = require(process.env['BAZEL_NODE_RUNFILES_HELPER']); - -describe('output tree spec resolves', () => { - it('should resolve runfiles relative', () => { - try { - const json = require(runfiles.resolvePackageRelative('test.json')); - expect(json.foo).toBe('bar'); - } catch (_) { - fail(`runfiles.resolvePackageRelative('test.json') should be resolved`); - } - }); -}); diff --git a/packages/jasmine/test/sharded_test.js b/packages/jasmine/test/sharded_test.js deleted file mode 100644 index add86c980d..0000000000 --- a/packages/jasmine/test/sharded_test.js +++ /dev/null @@ -1,26 +0,0 @@ -describe('test sharding with explicit isolation failures', () => { - let testIsolationFailure = 0; - it('should run the first spec first', () => { - testIsolationFailure = 1; - expect(true).toBe(true); - }); - it('should run the second spec in the same shard with the first', () => { - expect(testIsolationFailure).toBe(1); - }); - it('should run the third spec in a separate shard, first', () => { - expect(testIsolationFailure).toBe(0); - testIsolationFailure = 2; - expect(true).toBe(true); - }); - it('should run the fourth spec in the same shard with the third', () => { - expect(testIsolationFailure).toBe(2); - }); - it('should run the fifth spec in a third shard, first', () => { - expect(testIsolationFailure).toBe(0); - testIsolationFailure = 3; - expect(true).toBe(true); - }); - it('should run the sixth spec in the same shard with the fifth', () => { - expect(testIsolationFailure).toBe(3); - }); -}); diff --git a/packages/jasmine/test/stack.spec.js b/packages/jasmine/test/stack.spec.js deleted file mode 100644 index b8f52b5a93..0000000000 --- a/packages/jasmine/test/stack.spec.js +++ /dev/null @@ -1,55 +0,0 @@ -describe('jasmine_node_test', () => { - it('should capture all stack frames', () => { - try { - deepThrow0(); - fail(); - } catch (e) { - const trace = e.stack; - const lines = trace.split(/\n/); - // Assert that we capture more than 10 frames (the default); - expect(lines.length > 12).toBeTruthy(); - expect(trace.indexOf('deepThrow0')).toBeTruthy(); - expect(trace.indexOf('deepThrow12')).toBeTruthy(); - } - }); -}); - -function deepThrow0() { - deepThrow1(); -} -function deepThrow1() { - deepThrow2(); -} -function deepThrow2() { - deepThrow3(); -} -function deepThrow3() { - deepThrow4(); -} -function deepThrow4() { - deepThrow5(); -} -function deepThrow5() { - deepThrow6(); -} -function deepThrow6() { - deepThrow7(); -} -function deepThrow7() { - deepThrow8(); -} -function deepThrow8() { - deepThrow9(); -} -function deepThrow9() { - deepThrow10(); -} -function deepThrow10() { - deepThrow11(); -} -function deepThrow11() { - deepThrow12(); -} -function deepThrow12() { - throw new Error('Deep Stack'); -} diff --git a/packages/jasmine/test/test.json b/packages/jasmine/test/test.json deleted file mode 100644 index 6d95903051..0000000000 --- a/packages/jasmine/test/test.json +++ /dev/null @@ -1 +0,0 @@ -{"foo": "bar"} diff --git a/packages/jasmine/test/test_config_file.js b/packages/jasmine/test/test_config_file.js deleted file mode 100644 index 7402b2266b..0000000000 --- a/packages/jasmine/test/test_config_file.js +++ /dev/null @@ -1,6 +0,0 @@ -describe('configuring Jasmine', () => { - it('should accept a config file', () => { - // the config_file.json has random: false - expect(jasmine.getEnv().configuration().random).toBeFalsy(); - }); -}); \ No newline at end of file diff --git a/packages/jasmine/test/test_config_file.json b/packages/jasmine/test/test_config_file.json deleted file mode 100644 index f52aa3ef7e..0000000000 --- a/packages/jasmine/test/test_config_file.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "random": false, - "spec_files": [ - "**/test_config_*.js" - ] -} \ No newline at end of file diff --git a/packages/rollup/test/code_splitting/BUILD.bazel b/packages/rollup/test/code_splitting/BUILD.bazel index ff37144e6e..051712fdfd 100644 --- a/packages/rollup/test/code_splitting/BUILD.bazel +++ b/packages/rollup/test/code_splitting/BUILD.bazel @@ -1,4 +1,3 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/rollup:index.bzl", "rollup_bundle") rollup_bundle( @@ -12,10 +11,3 @@ rollup_bundle( output_dir = True, supports_workers = True, ) - -jasmine_node_test( - name = "test", - srcs = ["spec.js"], - data = ["@npm//source-map"], - deps = [":bundle"], -) diff --git a/packages/rollup/test/multiple_entry_points/BUILD.bazel b/packages/rollup/test/multiple_entry_points/BUILD.bazel index 5b37143600..62af5195c7 100644 --- a/packages/rollup/test/multiple_entry_points/BUILD.bazel +++ b/packages/rollup/test/multiple_entry_points/BUILD.bazel @@ -1,4 +1,3 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/rollup:index.bzl", "rollup_bundle") rollup_bundle( @@ -10,10 +9,3 @@ rollup_bundle( output_dir = True, supports_workers = True, ) - -jasmine_node_test( - name = "test", - srcs = ["spec.js"], - data = ["@npm//source-map"], - deps = [":chunks"], -) diff --git a/packages/rollup/test/sourcemaps/BUILD.bazel b/packages/rollup/test/sourcemaps/BUILD.bazel index 66262c59e2..c20de3e21d 100644 --- a/packages/rollup/test/sourcemaps/BUILD.bazel +++ b/packages/rollup/test/sourcemaps/BUILD.bazel @@ -1,4 +1,3 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/rollup:index.bzl", "rollup_bundle") rollup_bundle( @@ -14,10 +13,3 @@ rollup_bundle( sourcemap = "true", supports_workers = True, ) - -jasmine_node_test( - name = "test", - srcs = ["spec.js"], - data = ["@npm//source-map"], - deps = [":bundle.js.map"], -) diff --git a/packages/rollup/test/workspace_link/BUILD.bazel b/packages/rollup/test/workspace_link/BUILD.bazel index 9abc8d3100..d794f80b51 100644 --- a/packages/rollup/test/workspace_link/BUILD.bazel +++ b/packages/rollup/test/workspace_link/BUILD.bazel @@ -1,5 +1,4 @@ load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin") -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/rollup:index.bzl", "rollup_bundle") copy_to_bin( @@ -22,9 +21,3 @@ rollup_bundle( "@npm//@rollup/plugin-node-resolve", ], ) - -jasmine_node_test( - name = "test", - srcs = ["spec.js"], - deps = ["bundle"], -) diff --git a/packages/runfiles/test/BUILD.bazel b/packages/runfiles/test/BUILD.bazel index 337526fcad..aa029f44cb 100644 --- a/packages/runfiles/test/BUILD.bazel +++ b/packages/runfiles/test/BUILD.bazel @@ -1,15 +1,3 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") - -jasmine_node_test( - name = "test", - srcs = ["runfile_resolution.spec.js"], - data = [ - "test_fixture.md", - ":test_fixture.md.generated_file_suffix", - "//packages/runfiles:bazel_runfiles", - ], -) - # Path of file must start similar to `test_fixture.md` in order to regression-test a # scenario where the runfile resolution would accidentally resolve the path to # `test_fixture.md` through a runfile manifest entry that starts similarly. diff --git a/packages/typescript/test/ts_project/b/BUILD.bazel b/packages/typescript/test/ts_project/b/BUILD.bazel index a053f7bd7e..0a3c9c59a9 100644 --- a/packages/typescript/test/ts_project/b/BUILD.bazel +++ b/packages/typescript/test/ts_project/b/BUILD.bazel @@ -1,4 +1,3 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/typescript:index.bzl", "ts_project") package(default_visibility = ["//packages/typescript/test:__subpackages__"]) @@ -26,9 +25,3 @@ ts_project( "@npm//@types/node", ], ) - -jasmine_node_test( - name = "test", - srcs = ["b.spec.js"], - data = [":b"], -) diff --git a/packages/typescript/test/ts_project/data/BUILD.bazel b/packages/typescript/test/ts_project/data/BUILD.bazel index 0514fe18de..35c7a744c3 100644 --- a/packages/typescript/test/ts_project/data/BUILD.bazel +++ b/packages/typescript/test/ts_project/data/BUILD.bazel @@ -1,4 +1,3 @@ -load("//packages/jasmine:index.bzl", "jasmine_node_test") load("//packages/typescript:index.bzl", "ts_project") ts_project( @@ -15,8 +14,3 @@ ts_project( "@npm//@types/node", ], ) - -jasmine_node_test( - name = "test", - srcs = [":data"], -)