260 Commits

Author SHA1 Message Date
Anthony Fu
c9a8fb04ca chore: clean up eslint 2022-05-29 23:13:48 +08:00
Anthony Fu
e84e0c3158
chore: try remove vue2 sub monorepo (#1393) 2022-05-29 15:26:11 +08:00
Christoph Nakazawa
4ec0a76f6d
feat: Export snapshot state to expect.extend. (#1378) 2022-05-29 05:04:48 +00:00
Vladimir
17939379ed
feat: add dynamicImportSettled utility function (#1359) 2022-05-29 12:58:27 +08:00
Anthony Fu
861b438d16 chore: update ci 2022-05-29 12:57:26 +08:00
Anthony Fu
9952d330c0 chore: try fix ci 2022-05-29 12:18:05 +08:00
Anthony Fu
59119903c6 chore: update lock 2022-05-29 12:07:11 +08:00
Anthony Fu
c2a387c03c chore: fix examples 2022-05-27 14:47:20 +08:00
Anthony Fu
51459c9ce8 chore: update deps 2022-05-27 13:26:48 +08:00
Yehyoung Kang
466d6d2fca
docs(example): add vitest/globals to types (#1318) 2022-05-17 09:39:24 +08:00
Yehyoung Kang
918ea615e7
docs: fix link to react-storybook example (#1309) 2022-05-14 19:00:55 +02:00
Anthony Fu
4a046df559 chore: lint 2022-05-14 16:36:12 +08:00
Anthony Fu
7c341064f2 chore: clean up 2022-05-14 16:24:40 +08:00
Vladimir
c491fb448a
fix: can mock non-existent paths and virtual modules via __mocks__ (#1298) 2022-05-13 13:47:30 +00:00
Vladimir
7459ff8a46
fix: clear mock from callstack, if mocked with factory (#1276)
* fix: clear mock from callstack, if mocked with factory

* test: fix test for zustand
2022-05-09 11:38:11 +03:00
Cédric Exbrayat
07eeb28c6e
chore: repro --no-threads issues (#1060)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Co-authored-by: Vladimir Sheremet <sheremet.va@icloud.com>
2022-05-08 14:37:14 +08:00
Anthony Fu
29c8cee5c4 chore: update deps 2022-05-08 04:51:58 +08:00
Vladimir
110788a793
fix: resolve id before loading from vite (#1204)
* fix: resolve id before loading from vite

* fix: allow import actual modules inside a factory of __mocks__ file

* test: fix custom reporters test

* fix: invalidate mocks

* chore: fix compatability with node 14

* chore: fix callstack position

* chore: remove collect from worker.ts since entry doesn't export that function

* chore: fix pnpm-lock

* chore: slice "mock" from stacktrace

* chore: fix checking callstack for a function mock

* chore: add description to factory mock

* test: add test for importing itself inside __mocks__ folder
2022-05-08 04:41:05 +08:00
Vladimir
fbd797456c
feat: self/window/global share state with globalThis (#1256)
* feat: self/window/global share state with globalThis

* chore: fix infinite loop in --no-threads

* chore: add cleanup function to test-utils
2022-05-08 04:40:06 +08:00
ocavue
98e57e2511
fix: close node.js server correctly in the puppeteer example (#1257) 2022-05-07 13:50:27 +03:00
Anthony Fu
657225563d chore: lint 2022-05-03 09:28:45 +08:00
Anthony Fu
8c449252e8 chore: update deps 2022-05-03 05:20:44 +08:00
Anthony Fu
f40ee7e1de chore: downgrade happy-dom 2022-05-03 01:09:05 +08:00
Anthony Fu
63488179d0 chore: update core packages 2022-05-02 23:56:36 +08:00
Anthony Fu
317766f70f chore: apply lint 2022-05-02 23:12:20 +08:00
Anthony Fu
10b0cf7a9d chore: upgrade deps 2022-05-02 23:12:20 +08:00
Anthony Fu
92fe1a7df4 chore: cleanup 2022-04-25 21:42:45 +08:00
Anthony Fu
f99e043ab4 chore: update lock 2022-04-25 20:14:27 +08:00
Anthony Fu
713c870a55 chore: lint 2022-04-25 19:44:30 +08:00
Anthony Fu
4b785138e1 chore: update deps 2022-04-25 19:43:45 +08:00
renovate[bot]
4d1e0a0ed1
fix(deps): update all non-major dependencies (#1159)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-21 22:25:34 +08:00
irvile
9dd26e269e
docs: update nextjs example (#1174)
* fix(dev): fix next/image hostname error in nextjs

* chore: update react 18 in nextjs example

* chore: pnpm-lock.yaml
2022-04-21 12:48:29 +08:00
Ian VanSchooten
925ff1febf
chore: update storybook example (#1152) 2022-04-15 05:59:19 +02:00
renovate[bot]
0de8969331
chore(deps): update dependency @testing-library/react-hooks to v8 (#1138)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-13 08:59:17 +08:00
renovate[bot]
40c26ed3b8
chore(deps): update all non-major dependencies (#1137)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-13 07:53:43 +08:00
Zach Hoskins
52fb548124
chore: fix link in comment (#1126) 2022-04-09 11:25:37 +08:00
eleith
06faf8ad49
fix: make automocking aware of symbol indexed methods (#1119)
Co-authored-by: eleith <online-github@eleith.com>
2022-04-08 02:10:19 +08:00
renovate[bot]
16684b2ae2
chore(deps): update all non-major dependencies (#1094)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-04 10:56:54 +08:00
Anthony Fu
db824cf434 chore: apply lint 2022-04-03 16:35:29 +08:00
Vladimir
885b25d4f2
fix: automocking prototype fix (#1083) 2022-04-03 15:55:02 +08:00
Anthony Fu
93c57df948 chore: ungrade user-event 2022-04-02 00:43:28 +08:00
Anthony Fu
cadefe5686 chore: update example 2022-04-02 00:33:10 +08:00
Anthony Fu
43f681914a chore: update deps 2022-04-02 00:30:52 +08:00
Cédric Exbrayat
2be420f982
docs: use jsdom for vue examples (#1059)
The VTU team got several reports of errors with happy-dom,
that developers tried after seeing it in the Vitest examples.
Switching to jsdom generally fixes the issue (and this is what create-vue uses as well).

This commit switches the Vue examples from happy-dom to jsdom.
2022-03-31 18:16:28 +08:00
renovate[bot]
ffa0228034
chore(deps): update all non-major dependencies (#1042)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-28 10:13:38 +08:00
renovate[bot]
a1cab8ee30
chore(deps): update all non-major dependencies (#995)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-21 18:50:28 +08:00
Anthony Fu
7386bbc9ef chore: update deps 2022-03-16 15:53:00 +08:00
patak
26238a51b0
docs: remove outdated examples (#941) 2022-03-15 21:30:32 +08:00
Anthony Fu
20ef23fdbd chore: upgrade deps 2022-03-14 06:42:24 +08:00
Rob Caldecott
2e8a3b105d
feat: added nextjs example (#920)
* feat: added nextjs example

* chore: update

* chore: simplify nextjs demo

Co-authored-by: Rob Caldecott <robert.caldecott@keyloop.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-03-14 06:33:20 +08:00