Eradev
4732012f1c
toHaveNoOtherSpyInteractions implementation
2025-01-10 21:05:12 -05:00
Steve Gravrock
7683325d68
Improved specs for async matcher error messages
2024-12-31 10:10:40 -08:00
Andrei D
a1591da25d
improved error msg on toBeRehectedWithError and all other built-in async matchers
2024-12-22 17:43:47 +02:00
Steve Gravrock
1f1e1209d2
Merge branch 'add_toBeNullish' of https://github.com/MattMcCherry/jasmine
...
* Merges #2045 from @MattMcCherry
2024-12-12 17:30:55 -08:00
Matt McCherry
36dd6b07d1
add integration test for a falsy value
2024-12-10 11:39:44 +00:00
Matt McCherry
2f3689713b
add tests for falsy values
2024-12-10 11:31:16 +00:00
Alex Yorkovich
1805337424
Added new toHaveClasses matcher; tests included
2024-12-04 12:20:15 -06:00
Matt McCherry
580323c221
run prettier and fix tests
2024-12-02 10:34:55 +00:00
Matt McCherry
d9286c549f
add integration test for toBeNullish
2024-12-02 10:34:55 +00:00
Matt McCherry
26dfa6d257
Add .toBeNullish matcher
2024-12-02 10:34:49 +00:00
Steve Gravrock
ce9c752899
Added debug logging to flaky test
2024-11-12 20:25:20 -08:00
Steve Gravrock
d5e7bc9fd6
Optionally enforce uniqueness of spec and suite names
...
This is off by default for backwards compatibility but can be enabled
by setting the forbidDuplicateNames env config property to true.
Fixes #1633 .
2024-11-10 09:54:51 -08:00
Steve Gravrock
29551ba4f3
Prettier
2024-11-09 13:17:32 -08:00
Steve Gravrock
bd9a3b2305
Include property value mismatches in diffs even when there are missing or extra properties
2024-11-09 11:22:27 -08:00
Steve Gravrock
84c7e2b21b
Fixed de-duplication of exception messages containing blank lines on Node and Chrome
...
This is particularly helpful when reporting testing-library errors, which
have messages that contain blank lines and can be hundreds or even thousands
of lines long.
2024-10-07 20:04:07 -07:00
Steve Gravrock
dda25bb29e
Removed references to PhantomJS from StackTraceSpec.js
2024-10-07 19:55:34 -07:00
Steve Gravrock
d0fe5c4712
Require curly braces around loop and conditonal bodies
2024-09-02 11:30:36 -07:00
David Császár
35f16e8125
Add test for unclamping setTimeout in Safari
2024-09-01 10:22:16 +02:00
Steve Gravrock
66eb27b0af
Throw if spying has no effect
...
This provides a useful diagnostic in cases where assigning to a property
is a no-op, like localStorage in Firefox and Safari 17.
See #2036 and #2007 .
2024-08-17 09:07:18 -07:00
Mert Akinc
36a6e2aa1d
Merge branch 'main' into webkit-performance
2024-08-05 12:19:53 -05:00
Steve Gravrock
3c4b73f136
Fixed globbing in own test suite when running on Windows outside of c:\Users
...
The previous code used path.join() to construct glob input. That should't
work, but it did as long as the working directory was under c:\Users.
2024-08-03 18:06:20 -07:00
Mert Akinc
bc3ed74336
Formatting fix
2024-07-26 17:54:04 -05:00
Mert Akinc
97b6f33cc2
Add test, update rexex pattern and constant name
2024-07-26 17:45:23 -05:00
Mert Akinc
a9889ddb31
Improve performance on Playwright Windows WebKit
2024-07-25 09:54:32 -05:00
Stephan Ferlin-Reiter
6f23e706d7
Improve the error message of the toHaveSize matcher.
...
We include the size of the thing that didn't meet the size expectation.
2024-07-02 20:28:16 +00: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
c3960c4a96
Test against Node 22
2024-06-18 18:13:51 -07:00
Steve Gravrock
6a6fa7b29a
Tests for existing handling of non-Error global errors in Node
2024-03-22 09:15:22 -07:00
Steve Gravrock
6941bde7e2
Revert "Deprecate the suppressLoadErrors option"
...
jasmine-npm still needs this to enable the default behavior of crashing
with a stack trace on load errors.
This reverts commit 99e350ac85 .
2024-03-21 09:34:26 -07:00
Steve Gravrock
1504f25ced
Report the message when a browser error event with a message but no error occurs
2024-03-21 09:15:43 -07:00
Steve Gravrock
99e350ac85
Deprecate the suppressLoadErrors option
...
This was intended as a 3.0 migration aid for browser users who had
dependencies that triggered errors at load time. However, it was never
documented and never supported by jasmine-brower-runner, karma, or any
other commonly used tool for runing Jasmine in the browser. There is
no evidence of it actually being used. It is, however, starting to
show up in machine-generated "tutorials".
2024-03-04 19:35:31 -08:00
Jonathan
17c11ba7b9
fix: updated remaining files
2023-09-21 11:48:52 -03:00
Steve Gravrock
39f9c2e1a0
Don't attach spec helpers to the env
2023-08-26 11:52:26 -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
e56bd3918b
Added throwUnless and throwUnlessAsync
...
These are similar to `expect` and `expectAsync` except that they throw
exceptions rather than recording matcher failures as spec/suite failures.
They're intended to support using Jasmine matchers in testing-library's
`waitFor`, and also provide a way to integration-test custom matchers.
These funtions are not equivalent to `expect` and `expectAsync` and should
not be used in situations where you want a matcher failure to reliably fail
the spec. Whether that happens depends on the structure of the surrounding
code. In general, you should only use `throwUnless` when you expect
something (which could be your own code or library code like `waitFor`) to
catch the resulting exception.
Fixes #2003 .
Fixes #1980 .
2023-07-15 12:08:11 -07:00
Steve Gravrock
0ff56c53b1
Dogfood remote Selenium grid support
2023-07-01 10:17:05 -07:00
Steve Gravrock
ff93277c0f
Accessibility: Always provide a non-color indication that a spec is pending
2023-04-29 11:45:21 -07:00
Steve Gravrock
c36a5cfd96
Parallel: Cleaner interface for reporter dispatching
...
This gets jasmine-npm out of having to deal with QueueRunner, GlobalErrors,
and ReportDispatcher directly.
2023-04-08 11:41:15 -07:00
Steve Gravrock
656427d328
Parallel: Disallow calls to Env#config from spec and helper files
...
Such configuration changes only affect one worker, which is almost certainly
not the intent.
2023-03-25 11:16:54 -07:00
Steve Gravrock
61505f4c59
Fixed post-merge test failures
2023-03-04 14:10:05 -08:00
Steve Gravrock
86eddb05b4
Merge remote-tracking branch 'origin/main' into 5.0
2023-03-04 14:06:43 -08:00
Steve Gravrock
8af5509581
Added a parallel flag to the jasmineStarted reporter event
2023-03-03 20:49:10 -08:00
Steve Gravrock
166e5f4d6c
Report the ID of each suite/spec's parent
...
This is intended to support parallel execution, which is planned for a
future release of Jasmine. Because the execution of unrelated suites will
interleave when run in parallel, reporters will not be able to assume
that the most recent `suiteStarted` event identifies the parent of the
current suite/spec. By adding this feature now, we allow reporters to
support both parallel execution and at least some 4.x versions without
having to implement two different ways of finding the parent suite.
2023-02-25 10:24:14 -08:00
Steve Gravrock
6ad8d20694
Report the path/url of the file that the spec/suite was defined in
...
Fixes #1884
2023-02-15 21:39:21 -08:00
Steve Gravrock
af9a4114f4
Parallel: Improved error messages for top-level before/afterAll
2022-11-25 13:13:05 -08:00
Steve Gravrock
75f97961f5
Dropped support for Safari 14 and Firefox 91
2022-11-24 13:25:39 -08:00
Steve Gravrock
25a7168286
Merge remote-tracking branch 'origin/main' into 5.0
2022-11-24 12:50:39 -08:00
Steve Gravrock
ed5e902106
Parallel: Don't allow reporters to be added or removed in worker processes
2022-10-22 09:56:52 -07:00