Asher Gomez
9c32f3a57b
refactor(assert,internal): rename diffstr()
to diffStr()
( #4758 )
2024-05-17 15:32:03 +10:00
denobot
66e8fc9869
chore: release 2024.05.16 ( #4755 )
...
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-05-16 20:10:44 +09:00
David Sherret
4a7f38339e
chore(expect): fix future no-slow-type
lint errors with expando properties ( #4711 )
...
* chore: fix future fast check errors with expando properties
* spelling
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-05-13 08:29:05 +10:00
Asher Gomez
48a1982d10
fix(expect): don't swallow the original error while creating assertion error ( #4700 )
...
refactor(expect): remove unreachable logic
2024-05-09 16:29:13 +10:00
Michael Herzner
b649680328
test(assert): improve test coverage ( #4679 )
...
* test(assert): improve test coverage
* chore: format
* chore: lint
* nits
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-05-07 00:08:16 +00:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase ( #4650 )
2024-04-29 11:57:30 +09:00
Asher Gomez
f57ac69735
refactor(assert,expect): use shared format.ts
and diff.ts
( #4592 )
2024-04-16 17:09:40 +10:00
Yuki Tanaka
e299c8b689
deprecation(expect): rename addSnapshotSerializers
to addSnapshotSerializer
( #4582 )
2024-04-15 16:39:02 +10:00
Asher Gomez
46d9fa594c
chore: update browser-compatible files with declaration ( #4560 )
2024-04-10 12:43:44 +10:00
cinchen
8227afed20
feat(expect): support expect.addSnapshotSerialize()
api ( #4537 )
2024-04-02 19:44:40 +09:00
David Sherret
26d3fc3031
chore: enable verbatim-module-syntax
lint rule ( #4539 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-04-02 00:57:05 +00:00
David Luis
1c38d2c886
feat(expect): add expect.{closeTo, stringContaining, stringMatching}
( #4508 )
2024-03-26 11:57:40 +09:00
Marvin Hagemeister
44760886e7
fix(expect/assert): missing constructor equality check ( #4512 )
...
* fix(expect/assert): missing constructor equality check
* fix: switch to jest constructor-style checks
* chore: add one more test case
* chore: move test assertion
* chore: use strict equality check
2024-03-22 22:24:19 +01:00
Gabriele Belluardo
2990aa6de5
chore: enable single-var-declarator
lint rule ( #4488 )
2024-03-14 22:18:00 +11:00
Asher Gomez
540a9675b6
refactor(expect): prepare for noUncheckedIndexedAccess
( #4464 )
2024-03-11 20:31:38 +11:00
Zhao
5fa58a7bd5
refactor(expect): use ===
instead of ==
( #4446 )
2024-03-07 07:45:29 +09:00
cinchen
cec0c680a5
fix(expect): fix equality of iterables ( #4286 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-03-05 18:26:12 +09:00
cinchen
76e3ec8898
feat(expect): support expect.extend()
api ( #4412 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-03-04 20:57:08 +09:00
Javier Hernández
5d15ab7596
feat(expect): add asymmetric matchers (any, anything, arrayContaining) ( #4366 )
2024-02-28 13:07:50 +09:00
David Sherret
ef6b95f0c7
refactor: make the code work under verbatimModuleSyntax
( #4406 )
...
* Start
* Update
* Format
* Revert deno.json change
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-27 21:57:25 +00:00
Gabriele Belluardo
dd95b2c7dc
refactor(expect): format test names ( #4287 )
...
* refactor(expect): format test names
* Update expect/_assert_not_equals_test.ts
---------
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-02-09 09:00:55 +11:00
cinchen
2f1b13acdb
feat(expect): add expect.addEqualityTesters
api. ( #4255 )
2024-02-06 16:41:42 +09:00
David Luis
ad4abccb66
docs: replace markdown hyperlink syntax with {@link}
tag where necessary. ( #4253 )
...
docs: replaces markdown hyperlink syntax with `{@link}` tag when necessary.
2024-02-01 09:19:46 +11:00
cin
04959d6bf8
fix(expect): add Error object equal check. ( #4248 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-01-30 12:28:49 +09:00
cin
67fe57c295
fix(expect): align toEqual
to jest ( #4246 )
2024-01-29 17:55:56 +09:00
BlackGlory
772c4f982a
fix(expect): fix the function signature of toMatchObject()
( #4202 )
...
* fix(expect): fix the function signature of `toMatchObject`
* chore: format code
2024-01-16 09:09:30 +11:00
Simon Holloway
508f3f568f
refactor(expect): prepare for noUncheckedIndexedAccess
( #4150 )
...
* refactor(expect): prepare for `noUncheckedIndexedAccess`
* test(expect): better error messages for missing mock call
* test(expect): follow testing naming guidelines
* tweak
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-11 12:14:44 +11:00
Lino Le Van
c46143f0ac
chore: update copyright year ( #4046 )
...
* chore: update copyright year
* fix
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
Yoshiya Hinosawa
9a0a21d604
fix(expect): align toEqual to jest ( #4034 )
2023-12-30 18:40:27 +09:00
Yoshiya Hinosawa
e993dbd0cb
fix(expect): align toStrictEqual behavior to jest ( #4035 )
2023-12-28 22:10:52 +09:00
David Luis
76fd2aa102
fix(expect): invalid return typing ( #4011 )
...
* fix(expect): invalid return typing
* tweaks
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-21 21:47:53 +00:00
David Sherret
b0803619af
refactor: add some missing explicit types ( #3997 )
...
* refactor: add some missing return types and mark some non-exported types as `@internal`
* Update expect/fn.ts
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
* Remove @internals
* nits
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-19 00:26:13 +00:00
Simon Holloway
00e24ecc93
feat(expect): support message checks in expect().toThrow ( #3938 )
2023-12-12 23:45:58 +09:00
scarf
7e0c9debb1
refactor(assert): correct test names, part 2 ( #3913 )
2023-12-09 01:04:29 +09:00
Asher Gomez
733b60e4b2
chore(fmt): replace stripColor()
use with stripAnsiCode()
( #3902 )
2023-12-06 17:58:42 +11:00
Asher Gomez
18b2cf4a3b
chore(assert): copy _format.ts
to std/expect
( #3886 )
2023-12-01 13:09:06 +11:00
Yoshiya Hinosawa
1a7ede05b4
feat: add std/expect ( #3814 )
...
Co-authored-by: Thomas Cruveilher <38007824+Sorikairox@users.noreply.github.com>
2023-11-21 23:52:38 +09:00