Steve Gravrock
03ebebf6fb
rm unused spec/.eslintrc.js
...
This file hasn't done anything since the upgrade to eslint 9.
2026-03-07 14:02:56 -08:00
Steve Gravrock
fc2de634ab
Fix test failure on Windows
2026-02-28 17:52:48 -08:00
Benoit CHOMEL
0a5acd99cb
feat: Add new toBeRejectedWithMatching async matcher
...
Addresses #1781
2026-02-26 00:01:45 +01:00
Steve Gravrock
4bf333ed38
rm unnecessary and deprecated eslint-env comments
2026-02-21 11:15:57 -08:00
Steve Gravrock
5de03beea1
Fix test failure in Node 20 and 22 parallel tests
2026-02-07 20:03:59 -08:00
Steve Gravrock
42baa422b3
Formatting
2026-02-07 18:36:36 -08:00
Steve Gravrock
6af5d24b3b
Improve formatting of AggregateErrors
2026-02-07 18:22:12 -08:00
Steve Gravrock
b88ce2d49f
Improve AggregateError specs
...
* Assert that the right inner stack traces are in the right places
* Drop the integration tests. All of the AggregateError-specific code
is in ExceptionFormatter, so the integration tests just duplicate
existing integration tests and the ExceptionFormatter specs.
2026-02-07 17:41:39 -08:00
Charley
319776d241
Report the constituent errors of an AggregateError
...
Fixes #2063
2026-02-07 11:16:57 -08:00
Steve Gravrock
5b76bf9552
Merge branch '6.0'
2025-12-01 17:48:49 -08:00
Steve Gravrock
00b09a9a04
Simplify HtmlReporterV2 initialization and boot1.js
2025-11-28 09:47:31 -08:00
Steve Gravrock
f5e9b61f73
Replace isArray helper with native Array.isArray
2025-11-28 08:09:51 -08:00
Steve Gravrock
9530ff68ab
Fix event listener leaks in own specs
2025-11-28 07:13:52 -08:00
Steve Gravrock
b559faec2a
HtmlReporterV2: show correct progress when running a subset of specs
2025-11-27 07:24:45 -08:00
Steve Gravrock
23894c1a0a
Detect monkey patching and emit a deprecation warning.
...
This isn't comprehensive but it should be broad enough to ensure that most
people who would be affected by blocking monkey patching see a warning.
Covers the jasmine namespace as well as classes that are monkey patched by
zone.js.
Replacing globals (describe/it/etc) doesn't trigger a warning because they
belong to the user and are expected to be replaced.
2025-11-27 07:23:57 -08:00
Steve Gravrock
1e691b2470
Prettier
2025-11-27 06:53:27 -08:00
Steve Gravrock
c5555dd8cc
Better debug logging for spec that occasionally fails in FF
2025-11-27 06:30:09 -08:00
Steve Gravrock
32168be6c7
Statically expose pretty printer as jasmine.pp
...
Pretty printing is occasionally useful outside of the places where a
configured pretty printer is injected (matchers and asymmetric equality
testers). Users sometimes use the private basicPrettyPrinter for that.
jasmine.pp is part of the public interface and uses the current runable's
custom object formatters.
2025-11-22 09:46:45 -08:00
Steve Gravrock
00a8a11904
Merge branch 'slow-reporter' into 6.0
2025-11-15 09:01:44 -08:00
Steve Gravrock
3899d83fb6
HtmlReporterV2: show median and mean spec run time
2025-11-15 09:01:06 -08:00
Steve Gravrock
8f13684a01
Add a slowest specs list to HTMLReporterV2
2025-11-15 08:57:25 -08:00
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
d31d33aeb3
Introduce a tab bar
...
This will make it easier to add a third tab to HtmlReporterV2.
2025-11-09 09:58:57 -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
9a9d3994da
Add Safari 26 to supported browsers
2025-11-03 07:37:11 -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
bonkevin
27a1257b6d
fix: unavailable custom matchers on top-it
2025-10-29 13:04:10 -04:00
Jonah Bron
75658e0566
jasmine.allOf AsymmetricEqualityTester
...
New asymmetric equality tester that accepts a variable number of arguments, and will pass if all of them evaluate as being equal to the input value.
Includes unit tests
2025-10-27 10:10:16 -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
d66d0d9d2e
Fixed standalone distribution
2025-10-18 12:31:48 -07:00
Steve Gravrock
ea882c2f1e
HtmlReporterV2: Show a non-color indication of status while running
2025-10-18 09:46:16 -07:00
Steve Gravrock
695a805844
Backfill missing HTML reporter tests
2025-10-15 19:32:47 -07:00
Steve Gravrock
75347d9ba0
Removed slow test for long-removed IE specific code
2025-10-09 16:42:42 -07:00
Steve Gravrock
86387c9068
HtmlReporterV2: replace dots with progress bar
2025-10-09 16:42:42 -07:00
Steve Gravrock
9b3cc08818
Deprecate HtmlReporter and HtmlSpecFilter
2025-10-09 16:42:42 -07:00
Steve Gravrock
0ad54fc6f0
Clicking a link in HtmlReporterV2 does exact filtering
2025-10-09 16:42:42 -07:00
Steve Gravrock
c042665d9c
HtmlReporterV2 doesn't need specStarted
2025-10-09 16:42:42 -07:00
Steve Gravrock
a457cf1b81
Simplify boot1.js
2025-10-09 16:42:42 -07:00
Steve Gravrock
fb814b5f94
Refactor HtmlReporterV2 test setup
2025-10-09 16:42:42 -07:00
Steve Gravrock
77c3b8b07e
Clone HtmlSpecFilter and HtmlReporter in preparation for backward-incompatible changes
2025-10-09 16:42:42 -07:00
Steve Gravrock
de44e909f2
Ignore HtmlReporter's createElement and createTextNode options
...
Injected DOM wrappers were a nice idea in theory but everyone just passes
wrappers around document.createElement/document.createTextNode. That
includes HtmlReporter's unit tests and karma-jasmine-html-reporter, the
only known 5.x-compatible library that constructs an HtmlReporter.
2025-10-09 16:42:42 -07:00
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