Skip to content

Commit

Permalink
fix(jasmine): sharded test never fail when using Jasmine < 4 (#3360)
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 authored Mar 11, 2022
1 parent 8606c50 commit add1452
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ e2e_integration_test(
# Old API
"2.99.x",
"3.9.x",
"3.10.x",
# New API
"4.0.x",
"3.10.x",
]]

e2e_integration_test(
Expand Down
6 changes: 3 additions & 3 deletions packages/jasmine/jasmine_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ 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 3.10.0 should use the old API.
if (/^3\.[1-9]\.|^2\./.test(jrunner.coreVersion())) {
console.warn(`DEPRECATED: Support for Jasmine versions prior to '3.10.x' is deprecated in '@bazel/jasmine'.`);
// 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;
Expand Down

0 comments on commit add1452

Please sign in to comment.