Steve Gravrock
cfd8f11b30
Merge branch '5.99' into 6.0
2025-10-05 10:08:40 -07:00
Steve Gravrock
d95ebf303a
Merge branch 'main' into 5.99
2025-10-05 10:04:05 -07:00
Steve Gravrock
dbc1f9244e
Revert "Clicking a link in the HTML reporter does exact filtering"
...
This change broke spec filtering in Karma by changing the format of the
`spec` query parameter. Although karma-jasmine-html-reporter uses
jasmine-core's HtmlSpecFilter, karm-jasmine provides its own spec filter
that interprets the query parameters itself.
This feature may be reintroduced in 6.0 as a breaking change.
This reverts commit 8309416cb2 .
2025-10-05 09:59:36 -07:00
Steve Gravrock
489b83c61b
Revert "Move knowledge of query parameters out of boot1.js"
...
This reverts commit 6715f24fd0 .
2025-10-05 09:54:25 -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
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
190a13ed96
Prevent mock clock timing fns from being spied on
...
Fixes #826
2025-09-26 16:14:51 -07:00
Steve Gravrock
979e4a5d0f
Fixed naming in SpyRegistry specs
2025-09-25 20:41:19 -07:00
Steve Gravrock
8863643d55
Fixed broken SpyRegistry spec
2025-09-25 20:40:31 -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
17c0567bae
Don't leak errorWithStack in late async expectation failures
2025-09-21 08:38:46 -07:00
Steve Gravrock
6e0342fc8e
Deep clone reporter events
2025-09-20 16:18:56 -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
4166ea791c
Clean up global error listener leaks in Jasmine's own tests
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
Steve Gravrock
4d3f6b272a
Remove expected and actual properties of expectation results
2025-09-20 10:48:43 -07:00
Steve Gravrock
6ab83e25d1
Don't expose Order instances to reporters
2025-09-20 10:48:43 -07:00
Steve Gravrock
27297de3b8
Drop support for the eval form of setTimeout and setInterval in the mock clock
2025-09-20 10:48:43 -07:00
Steve Gravrock
3cbf4dc27b
Deprecate access to non-public Spec properties in spec filters
2025-09-20 10:48:08 -07:00
Steve Gravrock
6d77f3e7f0
Deprecate the eval forms of setTimeout and setInterval
2025-09-20 10:48:08 -07:00
Steve Gravrock
6715f24fd0
Move knowledge of query parameters out of boot1.js
2025-09-17 18:23:45 -07:00
Steve Gravrock
8309416cb2
Clicking a link in the HTML reporter does exact filtering
...
This feature requires an update to boot1.js, as shown in this commit.
Users with an older boot1.js will get the older inexact filtering.
2025-09-17 07:30:20 -07:00
Steve Gravrock
cca6b2aa07
Adopt forbidDuplicateNames: true in jasmine-core's own tests
2025-09-15 18:38:09 -07:00
Steve Gravrock
3d8396da0a
More precisely characterize suite/spec reporting
2025-09-13 10:10:42 -07:00
Steve Gravrock
0bf9aff195
Extract configuration out of Env
2025-09-07 15:53:24 -07:00
Steve Gravrock
3493519c9f
Fixed global error handling when the env is executed repeatedly
2025-09-06 10:32:56 -07:00
Steve Gravrock
6665c4e123
Don't remove before and after fns from the top suite
2025-09-02 10:23:44 -07:00
Steve Gravrock
3698f6fb5d
Support detectLateRejectionHandling in beforeAll and afterAll
2025-09-02 09:58:46 -07:00
Steve Gravrock
ca4fbcbccb
Clarify what's currently treated as private vs internal in Suite and Spec
2025-09-01 08:58:32 -07:00
Steve Gravrock
b597975c7e
Fix and enable pending async expectation message spec
2025-08-30 13:02:08 -07:00
Steve Gravrock
09ce3a30b6
Pend environment-specific specs rather than passing
2025-08-30 12:58:04 -07:00
Steve Gravrock
fbaba902dc
Merge branch 'bonkevin-html-reporter-with-duration'
...
* Merges #2073 from @bonkevin
* Adds spec duration to HTML reporter
2025-08-30 12:35:54 -07:00
Steve Gravrock
bf2e8e759e
Merge branch 'bonkevin-spec-suite-properties-accessors'
...
* Merges #2072 from @bonkevin
* Adds Env#getSpecProperty
2025-08-30 12:31:40 -07:00
Steve Gravrock
50e566bd67
Move beforeAll failure reporting into TreeRunner
2025-08-30 07:42:29 -07:00
Steve Gravrock
4b7d5e3623
Update and move remaining disabled Runner specs
2025-08-30 07:21:29 -07:00