angular/tools/npm-patches/@bazel+jasmine+5.8.1.patch

13 lines
736 B
Diff
Raw Normal View History

diff --git a/node_modules/@bazel/jasmine/jasmine_runner.js b/node_modules/@bazel/jasmine/jasmine_runner.js
index 097eb92..bd55c2d 100755
--- a/node_modules/@bazel/jasmine/jasmine_runner.js
+++ b/node_modules/@bazel/jasmine/jasmine_runner.js
@@ -147,7 +147,7 @@ async function main(args) {
// 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') {
+ 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.