135 Commits

Author SHA1 Message Date
Joaquín Sánchez
bdedbc2c19
feat(ui): add summary (#493)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-01-18 13:53:27 +08:00
Vladimir
bbd361a000
refactor: split deepMerge and deepMergeSnapshot (#563) 2022-01-18 13:17:59 +08:00
Pionxzh
ffffdd8e05
fix: improve file path handling in first level catalog (fix #535) (#541)
Co-authored-by: spigbbbbb@gmil.com <pionxzh>
2022-01-18 13:15:05 +08:00
Vladimir Sheremet
dda62d0af8 feat: vi.mock can be used inside setupFiles to automock libraries 2022-01-17 14:58:58 +03:00
Anthony Fu
b55e20a218 fix: temporary remove inline snapshot indent 2022-01-17 16:43:39 +08:00
Vladimir
4456615ecf test: test rejects toThrow to be compatible with jest 2022-01-16 10:09:32 +03:00
Vladimir
5c2a2d9364 fix: toThrow compatible with jest 2022-01-16 10:05:18 +03:00
Vladimir Sheremet
34ea091950 chore: mock happens if there is a quote inside a comment before 2022-01-14 17:26:23 +03:00
Vladimir
9d5a8b156f
feat: implement mock.invocationCallOrder (#532) 2022-01-14 17:12:13 +03:00
Anthony Fu
4420a39e5b fix: inline snapshot, close #525 2022-01-14 12:18:51 +08:00
Vladimir
b7bc12fe4e
fix(mock): vi.mock with line breaks in arguments (#502) 2022-01-12 01:38:50 +08:00
Vladimir
6d743c5513 fix: inline snapshot if not called inside suite
closes #484
2022-01-09 16:08:34 +03:00
Vladimir
aff14813db fix: snapshot ignores indentation 2022-01-08 12:03:05 +03:00
Anthony Fu
1aeaf748ab chore: fix linter 2022-01-07 22:57:07 +08:00
Alex Kozack
eb107f35dc
fix: mockClear clears instances (#471) 2022-01-07 14:34:44 +03:00
Vladimir Sheremet
0c3f8e2240 fix: jsdom supports Image
closes #419
2022-01-07 10:42:34 +03:00
Vladimir Sheremet
c927e2eea4 fix: support mocking virtual modules
closes #464
2022-01-07 09:39:06 +03:00
Vladimir
fdfffaebd0
fix: mock node builtins (#454) 2022-01-06 23:29:33 +08:00
Vladimir Sheremet
9c119ad1e0 fix: vi.mock works with node internals 2022-01-06 09:32:22 +03:00
Vladimir
b402b28847 chore: test for empty lines in mock factory 2022-01-05 12:13:39 +03:00
Vladimir
f27d2d6894
feat: toMatchSnapshot can be used with properties (#435)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-01-05 06:14:21 +08:00
Vladimir
6fe819a5d7
fix: hoist vitest import (#434)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-01-05 05:51:31 +08:00
Jose Cabrera
10096535cc
fix: revert #407 and #409 (#412) 2022-01-03 09:30:03 +01:00
Joost Koehoorn
108d3ccdfc
fix: prevent tests from stalling if an error occurs (fix #374) (#403)
Fixes #374
2022-01-02 15:59:12 +03:00
Vladimir
91c904cbf3 fix: throw expects function when rejects helper is used 2022-01-02 15:44:20 +03:00
Jose Cabrera
28f3d4fb37
Fix: do not add expected/actual attributes in a object when does not exist (#407)
* Fix: do not add expected/actual attributes in a object when both attributes does not exists

* changes test title

Co-authored-by: Jose Cabrera <jose@codium.team>
2022-01-02 14:30:23 +03:00
Vladimir
959de91b1a fix: toContainEqual uses the same logic for comparing equality as the rest of the equal matchers 2022-01-01 20:38:11 +03:00
Vladimir
11db5b6c19 fix: toBeCloseTo compatible with jest 2022-01-01 17:16:17 +03:00
Jan Müller
191ecb6a8c
feat(ui): add module graph (#380)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-31 15:52:27 +08:00
Anthony Fu
bad88e49dc chore: clean up 2021-12-30 15:54:30 +08:00
Anthony Fu
66de18c47c feat: fallback to cjs for deps resolving 2021-12-30 15:20:32 +08:00
Vladimir
c41794501e
feat: last jest compatible APIs (#365) 2021-12-30 02:12:41 +08:00
Vladimir Sheremet
97abcb984b fix: incorrect behaviour of toBeDefined with not flag 2021-12-29 19:35:04 +03:00
Vladimir
577ff67ca8
feat: more expect compatible APIs (#360) 2021-12-29 22:52:06 +08:00
Vladimir Sheremet
fc9524b2e2 fix: toStrictEqual didn't have an assertion 2021-12-29 14:27:07 +03:00
patak
3140558623
fix: only mode with file scope (#350) 2021-12-29 12:24:25 +08:00
Jose Cabrera
c5acf2c174
test: should handle object with getter/setter correctly (#355) 2021-12-28 21:08:03 +01:00
Anthony Fu
1e26d854b2 chore: fix tests 2021-12-28 02:43:22 +08:00
Anthony Fu
f7d4b2e30d feat(ui): connection modal 2021-12-28 02:38:45 +08:00
Joaquín Sánchez
f5b27f0566
test: add circular array test (#337) 2021-12-27 19:35:18 +01:00
Shinigami
9a1b1b1803
fix: compatibility with jest's toStrictEqual (#330) 2021-12-27 22:14:37 +08:00
Anthony Fu
f86addac50 feat(ui): reactive state 2021-12-27 17:26:04 +08:00
Jose Cabrera
283e0242a2
fix: error serialize circular references (#323)
Co-authored-by: Jose Cabrera <jose@codium.team>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-27 15:05:48 +08:00
Anthony Fu
7277b92ad4 chore: update 2021-12-27 03:47:33 +08:00
Anthony Fu
0e04c45016 feat: indent to inline snap 2021-12-27 02:55:14 +08:00
Anthony Fu
d0ce8d0cb4 feat: embeded c8, close #321 2021-12-27 00:14:09 +08:00
Anthony Fu
a65ffd74ba
feat: support inline snapshot, close #113 (#298) 2021-12-24 21:18:09 +08:00
M. Bagher Abiat
325b2e1c24
feat(expect): assertions (#278)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2021-12-23 21:14:16 +08:00
Vladimir
40b2dfa65d
feat: creating automocks compatible with jest (#267) 2021-12-23 21:05:00 +08:00
Anthony Fu
db9616c63c chore: fix tests 2021-12-23 02:10:33 +08:00