Steve Gravrock
a67b7276be
Fixed jsdocs for throwUnless and throwUnlessAsync
2023-07-22 09:36:16 -07:00
Steve Gravrock
47f3105ef0
Bump version to 5.1.0
2023-07-22 09:12:36 -07:00
Steve Gravrock
aeb56539c9
Built distribution
2023-07-22 09:12:18 -07:00
Steve Gravrock
040983c979
Merge branch 'skip-non-error-cause' of https://github.com/angrycat9000/jasmine
...
* Merges #2013 from @angrycat9000
* Fixes #2011
2023-07-19 18:28:56 -07: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
59600a1c29
Removed expect/expectAsync indirection through spec/suite
2023-07-15 12:08:11 -07:00
Steve Gravrock
b617d983de
Bump version to 5.0.1
2023-06-09 16:24:00 -07:00
Steve Gravrock
8e0f0e8e8c
Optionally restore the pre-5.0 behavior of boot() always creating a new instance
...
This is needed by jasmine-npm (and likely other tools like it) that may
need to create and use multiple envs in sequence.
2023-06-05 19:44:06 -07:00
Steve Gravrock
d745d6b5f0
Bump version to 5.0.0
2023-05-13 15:14:53 -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
90741b3cee
Accessibility: Improved contrast of version number and inactive tab links
2023-04-29 11:45:16 -07:00
Steve Gravrock
73f8e001ad
Bump version to 5.0.0-beta-0
2023-04-29 10:10:05 -07:00
Steve Gravrock
5cc739d879
Bump version to 5.0.0-alpha.1
2023-04-08 13:02:21 -07:00
Steve Gravrock
1e7f07259e
API docs for parallel support things that jasmine-npm uses
2023-04-08 12:37:40 -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
299fd1f770
Removed unnecessary TODO
2023-03-25 11:21:04 -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
df2d9b282e
Bump version to 5.0.0-alpha.0
2023-03-18 11:25:32 -07:00
Steve Gravrock
04fac300e8
Uninstall the global error at the end of env execution
...
jasmine-npm needs this so that it can do its own error handling during
globalTeardown.
2023-03-11 17:45:31 -08: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
25a7168286
Merge remote-tracking branch 'origin/main' into 5.0
2022-11-24 12:50:39 -08:00
Steve Gravrock
494e81f436
Document that stopOnSpecFailure is best-effort in parallel mode
2022-11-24 12:48:40 -08:00
Steve Gravrock
5e650953cd
Added Safari 16 to supported browsers
2022-10-22 13:08:10 -07: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
Steve Gravrock
87f9ab29df
Fixed the jsdoc types of SuiteResult and SpecResult ids
2022-10-19 17:20:24 -07:00
Steve Gravrock
47c64a86d5
Parallel: fail if randomization is disabled or a seed is specified
2022-10-12 20:08:42 -07:00
Steve Gravrock
bb497beeff
Parallel: throw if Env#topSuite is called
2022-10-11 20:16:36 -07:00
Steve Gravrock
e14d9c4be3
Parallel: forbid beforeAll/afterAll at the top level
...
Either running these once total or running them once per process
would be the wrong choice for a significant chunk of users, so do
neither. Later we'll add a new API for exactly-once setup and teardown
in parallel mode.
2022-10-11 20:10:02 -07:00
Steve Gravrock
89e0b35c53
Parallel: throw an error if fit/fdescribe are used in parallel mode
2022-10-11 19:35:59 -07:00
Steve Gravrock
1e7b68236b
Parallel: forbid beforeEach/afterEach at the top level of spec files
...
Each spec file is only loaded in a single worker, so top level
before/afterEach can't behave consistently.
beforeEach/afterEach are still supported in:
* Helper files
* describe() blocks
* At the top level of spec files in non-parallel mode
2022-10-11 19:25:39 -07:00
Steve Gravrock
b831e81074
Include inner exceptions in stack traces
2022-09-24 12:12:21 -07:00
Steve Gravrock
4c13c2b00b
Replaced var with const in API doc examples
2022-09-24 10:12:22 -07:00
Steve Gravrock
dd98a45003
Use lcoal core when running our own tests in parallel
2022-09-18 19:59:21 -07:00
Steve Gravrock
fe6762b470
Merge branch '5.0' into parallel
2022-09-18 16:42:25 -07:00
Steve Gravrock
fa16b74500
Merge branch 'main' into 5.0
2022-09-18 13:39:05 -07:00
Steve Gravrock
4cd190b232
Merge branch 'internal-async'
2022-09-18 13:31:43 -07:00
Steve Gravrock
6ada55ff77
Parallel: Fixed reporting of exceptions thrown by a describe
2022-09-18 12:10:34 -07:00
Steve Gravrock
735ce6f758
Merge remote-tracking branch 'origin/5.0' into parallel
2022-09-18 09:43:31 -07:00
Steve Gravrock
430324885b
Merge branch 'main' into 5.0
2022-09-18 09:41:45 -07:00
Steve Gravrock
7c2e8ce7ca
Merge branch 'main' into parallel
2022-09-17 13:26:37 -07:00
Steve Gravrock
d4025999b7
Report exceptions thrown by a describe before any it calls
...
Previously, these were masked by the "describe with no children" error.
Now they're reported as suite level errors on an empty suite.
2022-09-17 13:24:45 -07:00
Steve Gravrock
44f331f43d
Updated the style of the examples
...
* const/let instead of var
* classes
* pass our own eslint checks
2022-09-17 12:00:20 -07:00
Steve Gravrock
59848ca151
Coerce the random string to a seed before sending it to reporters
...
This fixes an error in HTMLReporter when the configured seed is a
number rather than a string, which has been allowed since 3.8.0
2022-09-03 12:36:35 -07:00
Steve Gravrock
26c48ab324
Bump version to 4.4.0
2022-09-03 09:42:39 -07:00
Steve Gravrock
ee524831f4
Merge branch 'main' into parallel
2022-08-27 10:30:21 -07:00