Steve Gravrock
bdf63f2402
Remove code to support browsers that don't have MessageChannel
...
Jasmine hasn't actually run in any such browsers since 2.x.
2025-11-12 21:59:17 -08:00
Steve Gravrock
9c2ffae2f9
Add experimental safariYieldStrategy: "time" config option
...
This greatly improves speed, at least in jasmine-core's own tests.
2025-11-12 21:08:59 -08:00
Steve Gravrock
7b2807b321
Convert clearStack from a function to an object
2025-11-11 18:54:25 -08:00
Steve Gravrock
e4c69e960e
Add 'use strict' to AllOf.js
2025-11-04 05:52:45 -08:00
Steve Gravrock
a8431f33bd
Merge branch '5.99' into 6.0
2025-11-03 17:22:11 -08:00
Steve Gravrock
4995c967ac
Merge branch 'main' into 5.99
2025-11-03 17:14:24 -08:00
Steve Gravrock
ff9feb29d3
Configurable spec/suite filename detection
...
* Adds extraItStackFrames and extraDescribeStackFrames config properties.
* Un-deprecates the filename properties of reporter events.
* Fixes #2065 .
2025-11-01 14:17:01 -07:00
Steve Gravrock
fee7e6e64e
Merge branch 'jonahd-g-main'
...
* Adds jasmine.allOf asymmetric equality tester
* Merges #2087 from @jonahd-g
* Fixes #2083
2025-11-01 09:01:53 -07:00
Steve Gravrock
53e9bc68d2
Bump version to 5.12.1
2025-10-29 19:53:34 -07:00
Steve Gravrock
2be50e1b87
Merge branch 'bonkevin-fix-custom-matcher'
...
* Fixes custom matchers in top-level specs
* Merges #2088 from @bonkevin
2025-10-29 19:44:06 -07:00
Steve Gravrock
85322d1877
Re-add support for partial spec name filtering
...
No UI for this but users can construct URLs manually.
Fixes #2085 .
2025-10-24 17:26:49 -07:00
Steve Gravrock
020dffd504
Don't spy on getGlobal
2025-10-19 10:08:05 -07:00
Steve Gravrock
4201fd848f
Require spec/suite property keys to be strings, not just anything that's cloneable and serializable
...
This matches the jsdoc.
2025-10-19 09:15:12 -07:00
Steve Gravrock
f4b9c889b9
Bump version to 6.0.0-alpha.1
2025-10-18 11:58:17 -07:00
Steve Gravrock
e993a4a363
Merge branch 'main' into 5.99
2025-10-18 10:21:13 -07:00
Steve Gravrock
86387c9068
HtmlReporterV2: replace dots with progress bar
2025-10-09 16:42:42 -07:00
Steve Gravrock
7ba53b25f7
Bump version to 5.12.0
2025-10-05 12:02:56 -07:00
Steve Gravrock
b881b0077d
Warn if jasmine-core is loaded as an ES module in browsers
2025-10-05 09:03:27 -07:00
Steve Gravrock
67ef721c85
Fix startup crash in Karma
...
The previous commit left one code path un-converted to globalThis. That
exposed a bug in Karma: Karma loads jasmine-core via <script type="module">
even though it's not an ES module. In ES modules, the value of `this`
outside of a method is undefined rather than window. The Angular dev tools
try to work around that bug by monkey-patching window to look like GJS's
window object, which worked until the GJS hack was removed in the previous
commit.
2025-10-05 09:00:37 -07:00
Steve Gravrock
c4abf3265d
Use globalThis to determine the global object during initialization
...
This slightly simplifies the init code and hardens Jasmine against broken
bundlers that assume everything can be wrapped in a "use strict" context.
This removes a workaround for incompatible `this` behavior in GJS. GJS was
never a supported envronment, but in any case the change is unlikely to
cause problems since GJS ha supported globalThis since 2020.
2025-10-05 07:23:54 -07:00
Steve Gravrock
68a7cbb991
Adopt strict mode throughout the codebase
2025-10-05 06:53:54 -07:00
Steve Gravrock
73a30ffc3e
Made SpyRegistry compatible with strict mode
2025-10-05 06:53:39 -07:00
Steve Gravrock
18491e9b84
Encapsulate suite result
2025-10-05 06:19:16 -07:00
Steve Gravrock
0738ba6462
Omit irrelevant properties from suiteStarted
2025-10-05 06:16:57 -07:00
Steve Gravrock
712f9bac29
Encapsulate spec result
2025-10-05 06:01:27 -07:00
Steve Gravrock
d99bc3ab58
Encapsulate spec status
2025-10-05 06:01:27 -07:00
Steve Gravrock
418393c496
rm more vestiges of suite re-entry support
2025-10-05 06:01:27 -07:00
Steve Gravrock
2a83f5cc30
Don't mutate suite's failedExpectations from env
2025-10-05 06:01:15 -07:00
Steve Gravrock
bca56032e0
Expose browser errors uniformly outside of GlobalErrors
2025-10-04 12:48:14 -07:00
Steve Gravrock
dbcc1c924a
Bump version to 6.0.0-alpha.0
2025-09-29 18:45:30 -07:00
Steve Gravrock
90ee9a0cac
Merge branch '5.99' into 6.0
2025-09-29 18:11:46 -07:00
Steve Gravrock
b9f04f8702
Merge branch 'main' into 5.99
2025-09-29 18:11:33 -07:00
Steve Gravrock
e11f320df3
Also require setSpecProperty/setSuiteProperty args to be JSON serializable
2025-09-27 15:40:19 -07:00
Steve Gravrock
c2ce55580c
Remove support for excution orders that re-enter suites
2025-09-27 14:41:35 -07:00
Steve Gravrock
168ff0a751
Move private APIs to private namespace
...
Fixes #2078
2025-09-27 13:21:09 -07:00
Steve Gravrock
fbec066837
rm unused deprecatingSpecProxy
2025-09-27 12:58:48 -07:00
Steve Gravrock
0688db88e9
Bump version to 5.11.0
2025-09-26 16:53:15 -07:00
Steve Gravrock
190a13ed96
Prevent mock clock timing fns from being spied on
...
Fixes #826
2025-09-26 16:14:51 -07:00
Steve Gravrock
7214ccd3dc
Validate that setSuiteProperty and setSpecProperty args are cloneable
2025-09-21 15:09:42 -07:00
Steve Gravrock
970cbdc69c
Omit irrelevant properties from specStarted
2025-09-21 15:09:38 -07:00
Steve Gravrock
4020da25a4
Refactor Suite#addExpectationResult to use named arguments
2025-09-21 09:05:00 -07:00
Steve Gravrock
17c0567bae
Don't leak errorWithStack in late async expectation failures
2025-09-21 08:38:46 -07:00
Steve Gravrock
d333ecb5b1
Removed useless passed property from ThrowUnlessFailure
2025-09-20 16:17:02 -07:00
Steve Gravrock
1e98a4b61b
Removed remaining paths that pass expected and actual of expectations to reporters
2025-09-20 16:16:35 -07:00
Steve Gravrock
7aaa16f576
Removed ReportDispatcher support for multiple args and non-object args
...
All reporter calls take a single argument of object type, and always have.
2025-09-20 15:52:42 -07:00
Steve Gravrock
88289f592e
Revert "Don't remove existing unhandled exception and promise rejection handlers in Node"
...
This reverts commit 6da88ec19eea2780c030dc95fcc55d059fed69e5.
Removing existing handlers turns out to be load-bearing for Jasmine's
parallel mode. ParallelWorker (in the jasmine package) installs a pair
of handlers before booting core so that it can catch late async errors
that happen after one spec file has finished executing and before the
next starts. If those aren't uninstalled, errors that get routed through
jasmine-core's normal error handling mechanism will also be reported
via ParallelWorker's handlers. It might be possible for ParallelWorker
to uninstall and install its handlers at the right time, but it's
likely that there would be gaps in between when core uninstalls its
handlers and when ParallelWorker installs. And in any case, the
old behavior of GlobalErrors was a perfect match for what ParallelWorker
needs, so let's keep it.
2025-09-20 10:48:43 -07:00
Steve Gravrock
5439c8c9cd
Don't remove existing unhandled exception and promise rejection handlers in Node
2025-09-20 10:48:43 -07:00
Steve Gravrock
2c6ce35ccc
Pass spec metadata to filters, not internal Spec instance
2025-09-20 10:48:43 -07:00
Steve Gravrock
7c34b43607
Default forbidDuplicateNames to true
2025-09-20 10:48:43 -07:00
Steve Gravrock
3040abe23d
Treat {verboseDeprecations: undefined} as a no-op, like other boolean config props
2025-09-20 10:48:43 -07:00