jereklas
8eddd5a380
fix: handle undefined returns of module mocks, and update migration docs ( #1763 ) ( #1830 )
...
* handle undefined returns of module mocks, and update migration docs
* correct docs
2022-08-11 09:18:43 +03:00
jereklas
7574759127
fix: add error message when mock is missing export ( #1819 )
2022-08-08 18:10:59 +03:00
Vladimir
155943c5b6
feat: treat pseudo ESM as ESM with custom loader, disable custom Node Loader by default ( #1778 )
...
* feat: treat pseudo ESM as ESM
* chore: remove empty main fields
* chore: cleanup
* chore: disable node loader by default
* chore: cleanup
* chore: register loader for esm test
* chore: don't disable loader for now
* chore: revert
* chore: cleanup
* chore disable node loader by default
* chore: disable Node Loader tests
2022-08-05 18:43:42 +03:00
Vladimir
0e62002982
refactor: update Enzym example, upgrade Vue plugin ( #1755 )
2022-08-02 15:07:32 +08:00
Vladimir
ab4732faa8
refactor: update example for Vue 2 ( #1752 )
2022-07-31 16:12:48 +03:00
Vladimir Sheremet
f3c67f15db
chore: increase timeout for playwright and puppeteer examples
2022-07-31 15:42:22 +03:00
Vladimir
b971ede52f
feat!: apply Vite resolving algorithm to node_modules libraries ( #1673 )
...
* fix: apply Vite resolving algorithm to node_modules libraries
* chore: remove inlining solid-js
* chore: skip builtin
* refactor: cleanup
* chore: suppress loader warnings
* chore: add max limit to cpu when running rollup
2022-07-26 11:51:01 +03:00
Vladimir
fe69f433ee
fix!: add CSS styles to DOM ( #1690 )
...
* fix: add CSS styles to DOM
* chore: set type on style
2022-07-22 20:39:14 +03:00
Anthony Fu
88033bca99
feat: init @vitest/browser package ( #1302 )
...
Co-authored-by: Joaquín Sánchez Jiménez <joaquin.sanchez@fi2net.es>
Co-authored-by: userquin <userquin@gmail.com>
Co-authored-by: M. Bagher Abiat <zorofight94@gmail.com>
2022-07-20 03:37:45 +08:00
jfgreffier
c3cc6d8063
feat: add Playwright example ( #1670 )
2022-07-19 14:27:11 +08:00
Anthony Fu
7d349943be
chore: update deps ( #1642 )
2022-07-15 08:30:09 +08:00
Anthony Fu
49c67d2573
fix(vite-node): self circular reference ( #1609 )
2022-07-07 16:39:20 +08:00
Vladimir
edbf90785e
feat: add vite 3 support ( #1561 )
2022-06-27 16:24:14 +02:00
Vladimir
235b9502f9
fix: can mock files with space in path ( #1457 )
...
* fix: can mock files with space in path
* test: testing files with spaces
2022-06-10 10:10:55 +03:00
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