160 Commits

Author SHA1 Message Date
Anthony Fu
faae94de72 feat: show file name in suite error 2021-12-23 16:38:09 +08:00
Anthony Fu
606ec9c50e chore: update deps 2021-12-23 16:12:55 +08:00
Mitchel van Bever
e20a3d805a
feat(examples): added simple hook counter example (#276) 2021-12-22 20:21:41 +01:00
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
Mitchel van Bever
29d5e57f00
test: update react testing library example (#262) 2021-12-22 17:00:48 +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
Anthony Fu
e052d3888e chore: update deps 2021-12-21 22:18:22 +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
202ee0784b chore: fix ci timeout 2021-12-21 09:55:22 +08:00
Anthony Fu
0c29203da3 fix: top level hooks capture 2021-12-21 02:08:52 +08:00
Joaquín Sánchez
217038c464
docs: update happy-dom pr link (#237) 2021-12-20 18:23:06 +01:00
Anthony Fu
481be39c9e chore: update lit test 2021-12-21 01:17:42 +08:00
Joaquín Sánchez
6e931c7b66
test: fix lit (#234) 2021-12-20 18:07:16 +01:00
Anthony Fu
715f561e4d chore: clean up 2021-12-20 22:49:35 +08:00
Anthony Fu
2bddf32911 chore: improve timeout 2021-12-20 20:56:17 +08:00
patak
042d6cfb8a
test: speed up timers.test.ts (#224) 2021-12-20 19:36:57 +08:00
Anthony Fu
4367a3b8a1 chore: try fix ci 2021-12-20 19:11:31 +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
Horacio Herrera
6591dc6a4a
fix: fix core tests (#209) 2021-12-19 01:10:40 +08:00
Anthony Fu
ce8e944d64 fix: use pathe instead of path 2021-12-18 20:22:30 +08:00
Anthony Fu
945d85f080 chore: update snapshot 2021-12-18 18:58:32 +08:00
Anthony Fu
029b6a197f fix: use proxy to interpret import default, close #203 2021-12-18 18:11:02 +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
7756102e5e chore: fix mui warning 2021-12-17 03:23:07 +08:00
Anthony Fu
a2b223ded8 chore: cleanup 2021-12-17 03:02:38 +08:00
Anthony Fu
0be120043f chore: update deps 2021-12-17 02:59:06 +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
Anthony Fu
97eae385e0 chore: todo comments 2021-12-16 04:45:07 +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