Steve Gravrock
434575f49d
Use one declaration per statement
...
The old style of merging all of a function's variable declarations into
a single statement made some sense back in the days of var, but there's
no reason to keep doing it now that we use const and let.
2026-03-11 06:30:46 -07:00
Steve Gravrock
fc2de634ab
Fix test failure on Windows
2026-02-28 17:52:48 -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
168ff0a751
Move private APIs to private namespace
...
Fixes #2078
2025-09-27 13:21:09 -07:00
Steve Gravrock
cc69edf92c
Fixed stack trace filtering in FF when the developer tools are open
2024-06-22 11:49:49 -07:00
Steve Gravrock
ba7560f65e
HTML reporter: show debug logs with white-space: pre
2024-06-22 11:44:11 -07:00
Steve Gravrock
75d45efa16
Exclude inherited Error properties from stack trace
...
These are likely to be methods or other things that aren't meaningful in
Jasmine's output.
2023-07-19 19:13:24 -07:00
angrycat9000
2ddb344bac
Skip parsing cause if it is not an Error object
2023-07-19 10:00:50 -04:00
Steve Gravrock
75f97961f5
Dropped support for Safari 14 and Firefox 91
2022-11-24 13:25:39 -08:00
Steve Gravrock
b831e81074
Include inner exceptions in stack traces
2022-09-24 12:12:21 -07:00
Steve Gravrock
1166d10e43
Use const/let in specs, not var
2022-04-16 13:41:44 -07:00
Steve Gravrock
7a685b16f6
Removed duplicate message from errors (incl. matcher failures) on V8
2021-11-16 12:52:07 -08:00
Jannes Meyer
60bbe68148
Support source maps
2020-11-05 11:40:04 +01:00
Gregg Van Hove
b4cbe9850f
add prettier and eslint
2019-05-21 18:23:48 -07:00
Felix Rilling
e33b12b17c
Fixed typos in test suite descriptions.
2019-03-10 11:07:40 +01:00
Nito Buendia
04679622b0
Add tests for formatting empty content errors.
2018-09-13 20:02:30 +08:00
Nito Buendia
b4cd1ec1ae
Format according to style.
2018-09-13 19:48:53 +08:00
Nito Buendia
963b1cca22
Add tests for new unnamed errors.
2018-09-13 19:48:10 +08:00
Steve Gravrock
05015a8b3e
Correctly format stack traces for errors with multiline messages
...
- Fixes #1526
2018-03-10 12:03:08 -08:00
James Bunton
1149d4edde
Use j$.pp instead of JSON.stringify() for pretty printing
2018-02-27 10:22:06 +11:00
James Bunton
763a83c833
Display error properties for failed specs
2018-02-23 14:43:47 +11:00
Steve Gravrock
5906a2c05c
Filter Jasmine frames from stack traces
...
[Finishes #2644992 ]
2017-11-13 15:49:01 -08:00
Steve Gravrock
aaf226b9e3
Removed spec guards for versions of Safari we no longer support
2017-11-08 08:30:35 -08:00
Steve Gravrock
419470e9df
Removed support for IE <10
...
[#150527985 ]
2017-11-08 08:30:22 -08:00
Gregg Van Hove
79206ccff5
Rename j$ to jasmineUnderTest for specs
...
- Clarifies what it is for when writing tests
- No longer named the same as the `jasmine` that is injected into live
code
2015-12-03 17:23:32 -08:00
Sheel Choksi
06a553503d
Better failure message when something is thrown that's not an error
...
Change from 'undefined : undefined' to '<thing that was thrown> thrown'
Pointed out by @charleshansen
2014-01-09 22:10:40 -08:00
Gregg Van Hove and Tim Jarratt
1c19b8e38a
Move spec files back out of spec/javascripts
...
- Jasmine gem allows us to specify a path to jasmine.yml via ENV
[finish #58126010 ]
2013-10-02 16:32:35 -07:00
Gregg Van Hove and Rajan Agaskar
5017d1a4f1
Make rake jasmine:ci run specs correctly.
...
- Will replace rake core_specs.
- Remove obsolete dependencies & files -- most of these were for build tasks we
are no longer using. Notably, rspec and spec_helper were deleted.
2013-09-25 10:11:02 -07:00
JR Boyens
9e886b3972
Don't test for stack traces in Safari 5
2013-07-26 17:49:52 -07:00
Colin O'Byrne and JR Boyens
18c30566bd
Move from global to Env
2013-07-22 14:29:52 -07:00
Colin O'Byrne and JR Boyens
f2306729cd
Improve isIE check to allow us to check for a minimum version
2013-07-22 14:22:38 -07:00
Greg Cobb and JR Boyens
8c1881053c
Resolve remaining test issues
2013-07-22 11:57:47 -07:00
Sheel Choksi
1c87060804
Fix spec to throw error, ensuring a stack property
...
In Safari Mac 6.0.4 (and possibly other versions), a new error does
not have the stack property. Throwing the error and then catching it
ensures that the stack property has the correct value.
This fix gets the specs to run green in Safari.
2013-06-03 19:25:37 -07:00
Davis W. Frank
aca43bd3a3
Squashed commit of work to make Jasmine a collection of isolated modules. Note now that in our test suite, "jasmine" now always refers to the build jasmine loaded from jasmine.js and "j$" always refers to the code in the src directories.
...
Also, dev_boot.js is now a copy of boot.js and has additional changes to load jasmine the second time, into the j$ reference.
2013-05-28 14:09:20 -07:00
Dan Hansen and Davis W. Frank
d6da13a8dd
Attempt at normalizing error stacks across browsers.
...
Failed expectations now have a `stack` property, remove `trace.stack`
2013-02-27 16:37:31 -08:00
Davis W. Frank
a9eaa66da5
removing the exception formatter from the util namespace
2012-12-09 09:29:05 -08:00