40 lines
1.3 KiB
Markdown
40 lines
1.3 KiB
Markdown
# Jasmine Core 5.1.0 Release Notes
|
|
|
|
## Changes
|
|
|
|
* Exclude inherited Error properties from stack trace
|
|
|
|
* Fixed error when formatting Error object with non-Error cause property
|
|
|
|
Merges [#2013](https://github.com/jasmine/jasmine/pull/2013) from @angrycat9000.
|
|
|
|
Fixes [#2011](https://github.com/jasmine/jasmine/issues/2011).
|
|
|
|
* Added `throwUnless` and `throwUnlessAsync`
|
|
|
|
These are similar to `expect` and `expectAsync` except that they throw
|
|
exceptions rather than recording matcher failures as spec/suite failures.
|
|
They're intended to support using Jasmine matchers in [testing-library's](https://testing-library.com/)
|
|
`waitFor`, and also provide a way to integration-test custom matchers.
|
|
|
|
Fixes [#2003](https://github.com/jasmine/jasmine/issues/2003).
|
|
|
|
Fixes [#1980](https://github.com/jasmine/jasmine/issues/1980).
|
|
|
|
## Supported environments
|
|
|
|
jasmine-core 5.1.0 has been tested in the following environments.
|
|
|
|
| Environment | Supported versions |
|
|
|-------------------|--------------------|
|
|
| Node | 18, 20 |
|
|
| Safari | 15-16 |
|
|
| Chrome | 114 |
|
|
| Firefox | 102, 113 |
|
|
| Edge | 113 |
|
|
|
|
|
|
------
|
|
|
|
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|