Steve Gravrock
be29aa95eb
Improved jsdocs for asymmetric equality testers
2021-09-23 11:59:20 -07:00
Steve Gravrock
e3c9a59c6c
Added a stringContaining asymmetric equality tester
...
* Fixes #1923 .
2021-09-22 11:28:24 -07:00
Steve Gravrock
00f6708e1f
Removed unused submodule
2021-09-18 09:43:02 -07:00
Steve Gravrock
3a47a3bd04
Fixed flaky spec
2021-09-06 15:35:37 -07:00
Steve Gravrock
1c9382c990
Dogfood the new jasmine-npm completion interface
2021-09-04 13:39:17 -07:00
Steve Gravrock
394be99832
Fixed sass deprecation warnings
...
See <https://sass-lang.com/documentation/breaking-changes/slash-div >.
[#179260511 ]
2021-09-03 15:51:51 -07:00
Steve Gravrock
62a667a8e3
Added a deprecation notice to the gem's description
...
[#179330717 ]
2021-08-30 18:37:31 -07:00
Steve Gravrock
d277827d5e
Fixed typo in 3.9.0 release notes
2021-08-21 19:09:01 -07:00
Steve Gravrock
644c175338
Print a deprecation message when the jasmine-core gem is loaded
...
[#179247158 ]
[#179247160 ]
2021-08-21 18:35:38 -07:00
Steve Gravrock
a6d7eb2a06
Bump version to 3.9.0
2021-08-21 12:00:23 -07:00
Steve Gravrock
dd8a65cb60
Better reporting of unhandled promise rejections with truthy but non-Error reasons on Node
...
[#179227413 ]
2021-08-14 14:03:03 -07:00
Steve Gravrock
e72d161fab
Return a promise from Env#execute in environments that support promises
...
[#178373231 ]
2021-08-07 13:05:55 -07:00
Steve Gravrock
dcaac62a6c
Updated deprecaton messages for Env#throwOnExpectationFailure() and Env#stopOnSpecFailure()
2021-07-31 08:02:39 -07:00
Steve Gravrock
b696bec9e3
Renamed failFast and oneFailurePerSpec config props to stopOnSpecFailure and stopSpecOnExpectationFailure
...
The new names are more self-explanatory and consistent with jasmine-npm. The
old names are deprecated but still work.
[#178682783 ]
2021-07-31 07:51:50 -07:00
Steve Gravrock
43073b3bc5
Added API docs for Suite#id and Spec#id
...
These properties are the only way to obtain runnable IDs, without which
you can't call the form of Env#execute that takes an array of IDs.
2021-07-29 19:32:15 -07:00
Steve Gravrock
286524959b
Split boot.js in two to allow the env to be configured in between
...
This is mainly intended to support jasmine-browser-runner, which will load
a script that configures the env in between the two boot files (boot0.js and
boot1.js). The single-file boot.js is retained for now but will be removed
in a future release.
2021-07-26 18:05:36 -07:00
Steve Gravrock
2c32dd5703
Run browser-flakes build before regular cron build
2021-07-20 17:57:54 -07:00
Steve Gravrock
c1d1d69be2
Fixed test failures in Chrome and Edge
2021-07-19 12:08:40 -07:00
Steve Gravrock
3513249d73
Built distribution
2021-07-19 12:08:18 -07:00
Steve Gravrock
21bfbbb721
Merge branch 'iserror-tt' of https://github.com/bjarkler/jasmine into main
...
* Fixes Trusted Types error in Chromium-based browsers
* Merges #1921 from @bjarkler
* Fixes #1910
2021-07-19 12:06:12 -07:00
Steve Gravrock
88b90ec258
Backfilled unit tests for j$.isError_
2021-07-19 10:31:53 -07:00
Steve Gravrock
50c88e7774
Mark Env#hideDisabled deprecated in jsdocs
2021-07-08 18:53:21 -07:00
Steve Gravrock
3e64ce3310
Removed property tests for MatchersUtil#equals
...
These might be useful for a function with a more restricted domain. But for
equals, which accepts two of literally anything, the short run was too short
to catch any problems and the long run tended to exceed the CircleCi timeout.
2021-07-03 08:37:15 -07:00
Steve Gravrock
00586e50e0
Bump version to 3.8.0
2021-07-01 17:06:14 -07:00
Bjarki
dc80a282ba
Make j$.isError_ compatible with Trusted Types
...
The isError_ check uses a heuristic that calls the Function constructor
to determine if the given value is an Error object. This results in a
runtime violation in test suites that enforce Trusted Types.
Since Trusted Types are only supported in modern browsers (currently,
Chromium-based browsers), we can use a more straightforward heuristic in
environments where Trusted Types are supported.
Fixes #1910 . See that thread for more details.
2021-07-01 20:21:44 +00:00
Steve Gravrock
27c650ec08
Updated package description
2021-06-30 17:10:51 -07:00
Steve Gravrock
56daa6f461
Merge branch 'select-spec' of https://github.com/jlpstolwijk/jasmine into main
...
* Merges #1920 from @jlpstolwijk
* Fixes spec filtering in Karma
* Fixes #1906
2021-06-29 17:10:06 -07:00
Joris Stolwijk
e4c7d8af45
new attempt for fixing #1906 : add window.location.pathname to hrefs + comments + fixed tests
2021-06-29 14:03:25 +02:00
Steve Gravrock
ee88ecc614
Revert "add url pathName in toQueryString function - fixes ( https://github.com/jasmine/jasmine/issues/1906 ) + comment + test"
...
Reverted because it breaks the option checkboxes in the HTML reporter, both
in the standalone distribution and in jasmine-browser-runner.
Reopens #1906 .
This reverts commit 1e4f0d1545 .
2021-06-28 12:42:05 -07:00
Steve Gravrock
ec038273f1
Updated contributing guide
...
* Removed outdated steps
* Replaced list of environments with a pointer to the README
* Misc copy edits
2021-06-26 11:33:03 -07:00
Steve Gravrock
c5bdd79a1e
Added TS typings and jasmine-browser-runner to issue template
2021-06-26 11:21:19 -07:00
Steve Gravrock
dbc1a0aa56
Added expectAsync(...).already
...
* Causes async matchers to immediately fail if the promise is pending
* Fixes #1845
2021-06-23 20:13:01 -07:00
Steve Gravrock
5862b22aef
Include rejection details in failure messages for toBeResolved and toBeResolvedWith
...
[#178559119 ]
2021-06-21 16:43:51 -07:00
Steve Gravrock
163f93d6ff
Removed constructors from jsdocs of classes that aren't user-constructable
2021-06-21 14:19:31 -07:00
Steve Gravrock
1893bf6c16
Added jsdocs for asymmetric equality testers
2021-06-21 14:09:14 -07:00
Steve Gravrock
095745ab12
Removed gulp-jasmine-browser mention from README
2021-06-21 13:31:28 -07:00
Steve Gravrock
68db3f6fcf
Merge branch 'select-spec' of https://github.com/jlpstolwijk/jasmine into main
...
* Merges #1907 from @jlpstolwijk
* Fixes #1906
* Fixes spec filtering in karma-jasmine-html-reporter
2021-06-14 17:59:29 -07:00
Joris Stolwijk
1e4f0d1545
add url pathName in toQueryString function - fixes ( https://github.com/jasmine/jasmine/issues/1906 ) + comment + test
2021-06-14 15:05:12 +02:00
Steve Gravrock
c546d2cb6d
Merge branch 'patch-1' of https://github.com/eltociear/jasmine into main
...
* Fixes typo in spec name
* Merges #1918 from @eltociear
2021-06-13 09:57:23 -07:00
Steve Gravrock
6e097528f5
Include only specified files in the NPM package
2021-06-13 09:52:01 -07:00
Ikko Ashimine
4e1f36cbb0
Fix typo in SpySpec.js
...
ommitted -> omitted
2021-06-12 10:00:36 +09:00
Steve Gravrock
0aee81cfb9
Remvoed checks for typed array support in the test suite
...
All supported browsers have all typed arrays except for Uint8ClampedArray,
BigInt64Array, and BigUint64Array.
2021-06-05 13:31:26 -07:00
Steve Gravrock
1e50b49092
Fixed test failures on IE 10
2021-06-05 13:13:46 -07:00
Steve Gravrock
6aecf16cde
Test coverage for MatchersUtil#equals with typed arrays
2021-06-05 12:03:11 -07:00
Steve Gravrock
f2de1be96a
Fixed "stop spec on expectation failure" checkbox in standalone
...
Fixes [#178248968 ].
2021-06-01 08:49:34 -07:00
Steve Gravrock
5f4a1c4276
Merge branch 'issue/1897' of https://github.com/Dari-K/jasmine into main
...
* Adds option for spyOnAllFunctions to include non-enumerable props
* Merges #1909 from @Dari-k
* Fixes #1897
2021-05-26 17:44:54 -07:00
Darius Keeley
a4ef3687ee
Add optional param to spyOnAllFunctions to include non-enumerable properties
2021-05-25 11:37:24 +01:00
Steve Gravrock
9065b4c3b7
Added a jsdoc cross-reference from Configuration to its usage
2021-05-21 17:13:07 -07:00
Steve Gravrock
140225e7c3
Isolate specs that are flaky in browsers
...
* Don't run them in browsers in the regular CI build
* Run them in browsers in a special nightly build
* Run them in Node in the regular CI build
* Run them when developers manually run the suite
This should allow the regular CI build to give us a more useful signal,
while keeping us from losing sight of the flaky specs.
2021-05-15 07:44:25 -07:00
Steve Gravrock
8b38389d56
Test against Node 16
...
* Replaced node-sass dependency that isn't compatible with Node 16
* Added Node 16 to CI matrix
* Fixes #1894
2021-05-13 17:18:57 -07:00