木荣
00a1d7b691
docs: fix api/expect.addSnapshotSerializer hyperlink ( #1270 )
2022-05-08 18:47:38 +08:00
Vladimir
62cf5af67d
docs: add more info to config docs ( #1269 )
...
* docs: add more info to config docs
* docs: fix dead link
* Apply suggestions from code review
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-05-08 18:46:12 +08:00
木荣
dfd4fc314c
docs: fix api/toThrowErrorMatchingSnapshot & api/toThrowErrorMatchingInlineSnapshot hyperlink ( #1268 )
2022-05-08 09:29:32 +00:00
Vladimir
4acd70552a
docs: remove "mocking globals" from migration guide ( #1267 )
2022-05-08 09:14:57 +00:00
Anthony Fu
41db700a5d
chore: update lock
2022-05-08 15:34:05 +08:00
Anthony Fu
82d13bd2f4
release v0.12.0
v0.12.0
2022-05-08 14:42:11 +08:00
Anthony Fu
f4b53dbae0
chore: upgrade pnpm
2022-05-08 14:42:05 +08: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
Vladimir
dd3c5a1110
feat: allow passing passWithNoTests, allowOnly inside config ( #1264 )
2022-05-08 13:36:36 +08:00
Vladimir
555aba654c
fix: calling global functions in happy-dom, refactor sharing global state ( #1262 )
...
* chore: top/parent also the share the same state with globalThis
* fix: can call global functions without explicit this
* chore: move shouldBind check outside of defineProperty
* chore: cleanup
2022-05-08 13:34:37 +08:00
Vladimir
2d3f8d5283
feat: initialize environment only once for no-threads ( #1263 )
2022-05-08 13:33:59 +08:00
Vladimir
5750cf0d0f
docs: add vue snapshot section in migration guide ( #1265 )
2022-05-08 13:33:10 +08:00
Anthony Fu
336e4af332
release v0.11.0
v0.11.0
2022-05-08 05:27:28 +08:00
Anthony Fu
bf961fc89b
chore: downgrade pathe
2022-05-08 05:22:39 +08:00
Anthony Fu
3220d35e22
chore: downgrade pathe
2022-05-08 05:17:37 +08:00
Anthony Fu
d1c7df3509
chore: migrate pathe v3
2022-05-08 04:58:34 +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
Mike Stop Continues
34e177f66b
fix: add animation frame methods to global ( #1258 )
...
Fixes #1243
2022-05-07 16:17:55 +03:00
ocavue
98e57e2511
fix: close node.js server correctly in the puppeteer example ( #1257 )
2022-05-07 13:50:27 +03:00
ocavue
b7973fe097
fix: add missing c8 option src ( #1254 )
2022-05-07 12:01:44 +03:00
Antoine Rey
d9ad044194
feat(vite-node): replace minimist with cac ( #1249 )
...
* refactor(vite-node): Replace minimist with cac
* refactor(vite-node): Remove --silent and --vue flags
2022-05-06 22:37:56 +08:00
Anthony Fu
87b77bbb04
release v0.10.5
v0.10.5
2022-05-06 18:26:18 +08:00
Yoshi Togami
5dcfea7d21
feat: remove shebang when executing the code via vite-node ( #1224 )
...
* fix: remove shebang when runnning the code
* fix: add padding to avoid index changes
* chore: update
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-05-06 18:25:46 +08:00
Vladimir
2fcba95122
docs: add clarification about threads option ( #1247 )
2022-05-06 11:28:57 +02:00
Matija Marohnić
70bc30b3dc
fix: correctly order arguments in Jest diff util ( #1245 )
...
Some custom matchers like `@testing-library/jest-dom` use
`this.utils.diff` for the output. In Jest the order of arguments in that
util is "expected", then "received", so we're fixing the order of those
arguments here to match Jest's implementation.
2022-05-06 09:03:16 +03:00
Jesse Carter
38dab3fcb3
chore: typo ( #1244 )
2022-05-06 04:04:02 +08:00
Anthony Fu
da0fa2d0f3
release v0.10.4
v0.10.4
2022-05-06 00:56:14 +08:00
Anthony Fu
679f316ad7
chore: update dts
2022-05-06 00:56:06 +08:00
Vladimir
ae2c561784
fix: happy-dom v3 crashes ( #1234 )
2022-05-06 00:54:48 +08:00
Anthony Fu
5ff43314d1
release v0.10.3
v0.10.3
2022-05-06 00:16:46 +08:00
Vladimir
a9556555e8
fix: show custom error message if snapshot failed ( #1237 )
2022-05-05 23:37:01 +08:00
Vladimir
d15d47f99c
fix: use console._stdout, if available ( #1235 )
...
* fix: use console._stdout, if available
* chore: normalize module path in outside of module error helper
So it will look right on windows
2022-05-05 23:36:08 +08:00
Vladimir
93422cb2fb
docs: add more expects and guides ( #1236 )
2022-05-05 23:35:43 +08:00
Vladimir
3d8e846b12
fix: default to faled tests and unchecked snapshots when updating snapshots ( #1238 )
2022-05-05 23:33:56 +08:00
Ari Perkkiö
4de5da7a56
fix(inline-snapshots): detect linebreaks ( #1232 )
...
* style: fix typo
* test(inline-snapshot): add test for nested object
* fix(inline-snapshots): detect linebreaks
2022-05-05 05:02:58 +08:00
renovate[bot]
1c7c733b79
chore(deps): update all non-major dependencies ( #1227 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-04 19:29:18 +08:00
Anthony Fu
22f3c29610
release v0.10.2
v0.10.2
2022-05-03 15:35:25 +08:00
Vladimir
9c42c4f31b
feat: add config option logHeapUsage ( #1225 )
2022-05-03 15:33:21 +08: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
4673589125
chore: release script
2022-05-03 01:33:26 +08:00
Anthony Fu
2dbc31bd17
release v0.10.1
v0.10.1
2022-05-03 01:14:02 +08:00
Anthony Fu
a871d4ad14
chore: typo
2022-05-03 01:13:47 +08:00
Anthony Fu
f40ee7e1de
chore: downgrade happy-dom
2022-05-03 01:09:05 +08:00
Anthony Fu
1a6e06f0e8
chore: try fix ci
2022-05-03 00:24:22 +08:00
Anthony Fu
b0d222de7c
chore: try fix ci
2022-05-03 00:15:57 +08:00
Anthony Fu
671e5e486e
chore: temproray downgrade pretty-format
2022-05-03 00:02:19 +08:00
Anthony Fu
63488179d0
chore: update core packages
2022-05-02 23:56:36 +08:00