Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jasmine): replace deprecated Jasmine APIs that have been removed in version 4 #3283

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Jan 25, 2022

With this change we replace APIs that have been deprecated in version 4 and removed in version 4

Jasmine#onComplete is deprecated. Instead of calling onComplete, set the Jasmine instance's exitOnCompletion property to false and use the promise returned from the execute method.

Also this addresses the breaking change in version 4 https://github.com/jasmine/jasmine/blob/main/release_notes/4.0.0.md#changes-that-affect-custom-reporters in a backward compatible manner.

@alan-agius4 alan-agius4 force-pushed the jasmine-dep branch 2 times, most recently from 6fbc083 to eef5e9e Compare January 25, 2022 14:32
@alan-agius4 alan-agius4 changed the title feat(jasmine): replace deprecated Jasmine APIs that have been removed… feat(jasmine): replace deprecated Jasmine APIs that have been removed in version 5 Jan 25, 2022
@alan-agius4
Copy link
Contributor Author

alan-agius4 commented Jan 25, 2022

Looks like with this change we can only support Jasmine 3.10+ https://jasmine.github.io/api/npm/3.10/Jasmine.

So, I guess we need to support the older and new API since technically speaking changing the peer deps can be considered as a breaking change.

@alan-agius4 alan-agius4 changed the title feat(jasmine): replace deprecated Jasmine APIs that have been removed in version 5 feat(jasmine): replace deprecated Jasmine APIs that have been removed in version 4 Jan 25, 2022
@alan-agius4 alan-agius4 linked an issue Jan 26, 2022 that may be closed by this pull request
@alan-agius4 alan-agius4 changed the title feat(jasmine): replace deprecated Jasmine APIs that have been removed in version 4 fix(jasmine): replace deprecated Jasmine APIs that have been removed in version 4 Jan 26, 2022
@alan-agius4 alan-agius4 force-pushed the jasmine-dep branch 15 times, most recently from 2c63fa8 to e263803 Compare January 26, 2022 12:29
Copy link
Collaborator

@alexeagle alexeagle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Alan! Looks great as always, just one comment nit

e2e/BUILD.bazel Show resolved Hide resolved
packages/jasmine/jasmine_runner.js Show resolved Hide resolved
…in version 4

With this change we replace APIs that have been deprecated in version 4 and removed in version 4

```
Jasmine#onComplete is deprecated. Instead of calling onComplete, set the Jasmine instance's exitOnCompletion property to false and use the promise returned from the execute method.
```

Also this addresses the breaking change in version 4 https://github.com/jasmine/jasmine/blob/main/release_notes/4.0.0.md#changes-that-affect-custom-reporters in a backward compatible manner.

Closes bazel-contrib#3289
@alan-agius4
Copy link
Contributor Author

@alexeagle todos added.

@alexeagle alexeagle merged commit bde750b into bazel-contrib:stable Jan 26, 2022
@alan-agius4 alan-agius4 deleted the jasmine-dep branch January 26, 2022 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error using Jasmine 4.0 and jasmine_node_test
2 participants