86 Commits

Author SHA1 Message Date
Anthony Fu
db9616c63c chore: fix tests 2021-12-23 02:10:33 +08:00
Anthony Fu
e652897c00 chore: reuse stringify 2021-12-23 02:04:42 +08:00
Vladimir
efc8019f93
refactor!: renaming mockdate methods (#258) 2021-12-22 01:34:53 +08:00
Vladimir
0661a0b7d7
feat: mocking date (#254) 2021-12-21 22:42:03 +08:00
M. Bagher Abiat
0ddd9b22e8
feat(expect): stringMatching (#255)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-21 19:22:37 +08:00
Anthony Fu
7876375abc chore: add isolate test 2021-12-21 19:16:20 +08:00
Vladimir
6e39a1d7d8
feat: jest's mock compatible implementation (#146)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Co-authored-by: SaulMirone <mirone@SaulMirones-MacBook-Pro.local>
Co-authored-by: Christian Hamburger Grøngaard <christianhg@gmail.com>
Co-authored-by: Narcis B <leonardssh22@gmail.com>
Co-authored-by: patak <matias.capeletto@gmail.com>
Co-authored-by: Sachin Raja <sachinraja2349@gmail.com>
Co-authored-by: Jake Ginnivan <jake@ginnivan.net>
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
2021-12-21 19:14:14 +08:00
Vladimir
41244c2e47
docs: faking timers api (#250) 2021-12-21 08:49:29 +01:00
Anthony Fu
0c29203da3 fix: top level hooks capture 2021-12-21 02:08:52 +08:00
patak
042d6cfb8a
test: speed up timers.test.ts (#224) 2021-12-20 19:36:57 +08:00
Anthony Fu
86c4cda490 feat: support it.fails 2021-12-20 15:42:07 +08:00
Anthony Fu
c23479f067 refactor: chainable factory 2021-12-20 15:34:34 +08:00
Anthony Fu
ce8e944d64 fix: use pathe instead of path 2021-12-18 20:22:30 +08:00
Han(ハン)
e5ae539cdc
fix: missing snapshot message (#206) 2021-12-18 16:55:56 +08:00
Anthony Fu
08895ed161 chore: update snap 2021-12-18 16:52:56 +08:00
Anthony Fu
fce6e0ccd2 feat(snapshot): disable printBasicPrototype by default 2021-12-18 16:47:30 +08:00
Anthony Fu
601259faae chore: update linter 2021-12-18 11:48:12 +08:00
Horacio Herrera
bc9fff0256
fix: fix test (#204)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-18 11:34:27 +08:00
Anthony Fu
a2b223ded8 chore: cleanup 2021-12-17 03:02:38 +08:00
Vladimir
10317a06c0
fix: fixed async timers and running nested timers (#183)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-17 02:46:39 +08:00
Anthony Fu
06b8cd19cd fix: improve error message and diff with asymmetric matchers, #190 2021-12-17 02:40:23 +08:00
M. Bagher Abiat
2e26a7e01e
feat(expect): objectContaining (#180)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-17 01:32:58 +08:00
Anthony Fu
f47a34514d chore: apply linter 2021-12-17 01:23:43 +08:00
M. Bagher Abiat
8b96432645
feat(expect): any (#178)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-17 01:21:13 +08:00
Jose Cabrera
d6b44b3ed3
fix: when toHaveBeenCalledWith/toBeCalledWith (#177)
Co-authored-by: Jose Cabrera <jose@codium.team>
2021-12-17 01:12:47 +08:00
M. Bagher Abiat
d634f76bee
feat(expect): arrayContaining (#179) 2021-12-17 01:11:27 +08:00
Anthony Fu
3bbe4e4eab feat: comment controlled env, close #40 2021-12-16 16:40:45 +08:00
Vladimir
d7a577a751
feat: fake timers implementation (#163)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-16 15:35:44 +08:00
patak
aa81ada7c6
fix: test.only in nested describe (fix #157) (#172) 2021-12-16 15:35:06 +08:00
M. Bagher Abiat
7377199968
feat(expect): anything() (#171)
Co-authored-by: Vladimir <sheremet.va@icloud.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-16 15:34:40 +08:00
Tony Gorez
d973fc23a4
feat: add stringContaining expect (#131)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-16 04:16:14 +08:00
Vladimir
eff8c7d5f0
feat: jest compatible mocking (#165)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-16 03:38:29 +08:00
Anthony Fu
85120489a9 refactor: watcher 2021-12-15 23:37:07 +08:00
Anthony Fu
e1048263f6 fix: nested hooks, close #161 2021-12-15 17:54:57 +08:00
Anthony Fu
0a4631af52 fix: do not diff negate assertion, close #156 2021-12-15 12:30:05 +08:00
Anthony Fu
6febaaf672 fix: improve error serializer, close #159 2021-12-15 12:23:15 +08:00
patak
a2391388f8
fix: done(false) should succeed (#149) 2021-12-15 00:20:35 +08:00
Tony Gorez
03a8ea033a
feat: truncate large object / array / string (#118)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-14 22:37:36 +08:00
patak
d67b9a00b9
feat: support test done callback (#148)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-14 22:30:42 +08:00
Anthony Fu
ff21af943d chore: update test 2021-12-14 19:23:25 +08:00
Vladimir
e8aa118821
refactor: replace sinon with tinyspy (#129) (#130) 2021-12-14 05:06:21 +08:00
Anthony Fu
bb0cd220ef feat: setup files, close #28 2021-12-13 08:29:58 +08:00
Michel EDIGHOFFER
d5c73b9b11
feat: add inline snapshot (#100)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-13 07:00:07 +08:00
Anthony Fu
0459efcf0b chore: revert failed tests 2021-12-13 05:24:42 +08:00
Anthony Fu
39ddd136d0 feat: show stacktrace 2021-12-13 05:22:32 +08:00
Anthony Fu
e062b67269 feat: foward logs from worker, close #71 2021-12-13 04:21:45 +08:00
Vladimir
cd68d667e8
feat(expect): toHaveProperty support (#92) 2021-12-13 03:03:45 +08:00
M. Bagher Abiat
68ed9dfbb6
feat(options): defaultTimeout (#85) 2021-12-12 13:35:20 +08:00
Anthony Fu
c9f688f81d chore: revert time out change 2021-12-12 09:20:39 +08:00
Anthony Fu
e064425081 fix(watcher): avoid racing 2021-12-12 09:19:39 +08:00