Commit Graph

77 Commits

Author SHA1 Message Date
e601e6df31 fix: preserve full error message in not() expectation failures
When using not() expectations with custom error messages, the message
was truncated because throwExpectationFailedException() passed all
arguments through shortenedExport() which limits strings to ~40 chars.

Uses the full export() method for arguments instead of shortenedExport()
so custom error messages are displayed in their entirety.

Fixes #1533
2026-04-07 18:12:54 +05:30
f0a08f0503 chore: missing types 2026-02-17 17:52:00 +00:00
2c040c5b1f chore: style 2026-02-17 17:45:50 +00:00
a9ce1fd739 chore: code refactor 2026-02-17 17:45:34 +00:00
b1c997a869 feat: show more useful exception when intl extension not found 2025-12-12 12:02:00 +00:00
4c88590b89 feat: not.toHaveSuspiciousCharacters 2025-07-26 07:47:00 -06:00
c6244a8712 Release 3.8.2 2025-04-17 11:53:02 +01:00
0171617c1d chore: adjusts to new types on arch 2025-03-30 18:42:00 +01:00
ed70c9dc2b refactor: type adjustments 2025-03-14 22:40:39 +00:00
432ff221c6 fix: missing != and !== on new toUseStrictEquality arch expectation 2024-09-23 14:08:21 +01:00
a55da85dd2 release: v3.2.0 2024-09-23 13:14:03 +01:00
e6823679dd feat: adds not->toHavePrivateMethods and related 2024-09-04 11:18:41 +01:00
e2d360b1b5 chore: adjusts tests 2024-09-03 14:09:03 +01:00
dde943b993 refacto: toHaveMethod and toHaveMethods 2024-09-02 19:38:38 +01:00
2c6c3119d2 Merge branch '2.x' into 3.x 2024-08-22 21:21:52 +01:00
cbcfa2c5e2 Merge pull request #1100 from faissaloux/fix-use-strict-types
Fix `toUseStrictTypes`
2024-08-22 20:32:21 +01:00
7e4c51e13d Style 2024-08-10 11:48:32 +01:00
aacd874ebe fix 2024-08-09 00:38:16 +01:00
1c236aab26 fixes and styles 2024-08-09 00:30:06 +01:00
b6bf01148f feat: toHavePrivateMethodsBesides, toHaveProtectedMethodsBesides, toHavePublicMethodsBesides 2024-08-09 00:24:24 +01:00
101e26749a fix: properties and methods documented 2024-07-20 17:45:41 +01:00
b3c8c24aea Reworks 2024-07-20 14:15:28 +01:00
f2691623cf feat: toHaveAllMethodsDocumented and toHaveAllPropertiesDocumented 2024-07-19 14:03:59 +01:00
2e411893d2 feat: adds toHaveLineCountLessThan 2024-07-18 20:43:39 +01:00
0331a87be1 feat: adds toHaveFileSystemPermissions expectation 2024-07-14 23:16:04 +01:00
4783334f15 chore: style 2024-07-11 09:35:38 +01:00
ee32f25485 feat: pr and issue 2024-07-04 00:53:58 +01:00
474b9b7e17 chore: adjusts tests 2024-06-27 01:41:34 +01:00
0289466ce8 Allows other folders to be queuable 2024-06-25 23:06:25 +01:00
9d02b649e2 feat: adds toUseTraits expectation 2024-06-25 21:56:08 +01:00
eac6585a2e refactor: logger 2024-06-25 21:09:10 +01:00
04c39bae2e Adjust style 2024-06-25 21:02:52 +01:00
2c3234fb3d fix bool type 2024-02-21 17:09:16 +01:00
1b64fef7ba fix toUseStrictTypes 2024-02-21 16:58:40 +01:00
cb1735f4d8 fix: removes process-isolation from --help output 2024-01-25 17:27:03 +00:00
2e01776272 add to be backed enum expectation 2023-11-18 03:31:35 +00:00
6c73a3d90b initial commit 2023-09-18 01:00:50 +01:00
c9e919dd40 fix: correct comment message in OppositeExpectation 2023-09-06 08:34:48 +07:00
0fc232bbc7 Merge pull request #934 from hungthai1401/to_have_attribute_expectation
[2.x] Add `toHaveAttribute` expectation
2023-09-03 23:18:47 +01:00
9dabecacbf Add toHaveMethod arch expectation 2023-09-01 18:32:40 +02:00
e69899559d refactor: generic attribute 2023-08-24 15:23:13 +07:00
678898efe7 feat: toHaveAttribute expectation 2023-08-24 14:26:54 +07:00
4b24da1a58 Merge pull request #892 from ash-jc-allen/comment-updates
Updated comments
2023-08-01 16:35:42 +02:00
2e352c0084 Updated comments. 2023-08-01 13:09:53 +01:00
3f854713e6 Style updates. 2023-08-01 12:12:41 +01:00
011bd3ba82 Added "toBeInvokable" arch expectation. 2023-08-01 12:09:18 +01:00
6886558ed1 feat(arch): Adds support for opposite expectations of toHavePrefix and toHaveSuffix. 2023-07-31 11:28:53 +01:00
2e622f6fd4 chore: fixes type checkign 2023-07-31 00:06:36 +01:00
632ffc2f8e fix: arch assertions counter 2023-07-24 19:13:09 +01:00
fb443e0fa0 chore: fixes type checking 2023-07-01 10:31:26 +01:00