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
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
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
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
kbon
7feec406d9
set the right spec property key
2025-08-25 23:12:29 -04:00
kbon
f822ffea21
feat(getSpecProperty) get a user-defined property
2025-08-25 23:00:06 -04:00
Steve Gravrock
fd37a7eac0
Move/update/remove obsolste disabled TreeProcessor specs
2025-08-25 18:37:31 -07:00
Steve Gravrock
12219e80c1
Move spec execution from Spec to TreeRunner
2025-08-24 14:05:22 -07:00
Steve Gravrock
56ac8f5505
Refactor TreeRunner specs
2025-08-24 14:05:13 -07:00
Steve Gravrock
3780fe0b35
Convert some TreeRunner internals to promises
2025-08-24 14:04:47 -07:00
Steve Gravrock
164a393932
Move spec begin and end handling from Env/SuiteBuilder to TreeRunner
2025-08-23 09:03:57 -07:00
Steve Gravrock
759a867094
Backfill unit tests for spec autoCleanClosures
2025-08-23 09:03:57 -07:00
Steve Gravrock
f94d0ceda9
Validate queueableFns
2025-08-23 09:03:38 -07:00
Steve Gravrock
8d99f27be8
Throw an Error rather than a string when createSpyObj is called incorectly
2025-08-23 08:19:11 -07:00
Steve Gravrock
a3e1abfa12
Split the resulting execution tree out from TreeProcessor
2025-08-17 11:44:52 -07:00
Steve Gravrock
b89a870a59
Test TreeProcessor's public interface, not internal state
2025-08-17 11:44:37 -07:00
Steve Gravrock
ea3fc88803
Remove mutual recursion between Runner and TreeProcessor
2025-08-17 11:44:36 -07:00
Steve Gravrock
d5884e33c6
Move suite execution and spec queueRunner building from TreeProcesor to Runner
...
This:
* Sets the stage for getting suite and spec execution in one place
* Greatly simplifies the interaction between Runner and TreeProcessor
* Focuses TreeProcessor more on building execution trees
2025-08-17 11:43:00 -07:00
Steve Gravrock
138bf9be4b
Focused integration tests for Runner and TreeProcessor
...
These are mostly adaptations of the execution tests from TreeProcessorSpec.js.
They are meant to support refactoring of the interface and responsibility
division between Runner and TreeProcessor. All these scenarios are probably
covered by nearly-end-to-end integration tests, but those are more difficult
to debug.
2025-08-17 09:23:29 -07:00
Steve Gravrock
98d5284c19
Check for and silence suite reentry warnings in Jasmine's own tests
2025-08-15 06:58:08 -07:00
Steve Gravrock
2299c85751
Deprecate spec/suite orders that interleave suites
2025-08-13 19:02:36 -07:00
Steve Gravrock
8e3ec25f6d
Move invalid order exception throw into TreeProcessor
2025-08-13 18:30:51 -07:00
Steve Gravrock
8eee6ebb91
Runner: naming improvements, use private members
2025-08-11 23:22:07 -07:00
Steve Gravrock
c15a1aaa6d
Rename queueRunnerFactory to runQueue throughout
2025-08-11 23:05:56 -07:00
Steve Gravrock
5b06531cac
Prevent GloablErrors from being monkey patched
...
All current shipped versions of zone.js contain a monkey patch that fails
to pass constructor arguments on to GlobalErrors. That would crash Jasmine
if it was applied early enough to have any effect.
See <https://github.com/angular/angular/issues/63072 >.
2025-08-11 18:08:47 -07:00
Steve Gravrock
395ef85954
Optionally detect late promise rejections and don't report them as errors
2025-08-09 08:35:08 -07:00
Steve Gravrock
5e88fde655
Backfill some unit tests for Runner's interaction with TreeProcessor
2025-07-29 09:59:45 -07:00
Steve Gravrock
3176eaf1d8
Merge branch 'idConflict' of https://github.com/atscott/jasmine
...
* Avoid generating timers with IDs that conflict with native
* Fixes #2068
* Merges #2069 from @atscott
2025-07-15 16:50:57 -07:00