3312 Commits

Author SHA1 Message Date
Ari Perkkiö
a4ae57440a
test: fix stdin.test.ts pattern (#5001) 2024-01-19 07:26:26 +02:00
Ari Perkkiö
7d0a469290
fix(forks): set correct VITEST_POOL_ID (#5002) 2024-01-19 07:26:00 +02:00
Vladimir Sheremet
6421c2766c chore: release v1.2.1 v1.2.1 2024-01-17 17:23:06 +01:00
Vladimir
f8bff9efb8
fix(vitest): throw a syntax error if vi.hoisted is directly exported (#4969) 2024-01-17 15:43:09 +01:00
Ari Perkkiö
ba7ae53b22
docs: rewrite mention of old --no-threads option (#4978) 2024-01-17 15:42:51 +01:00
Hiroshi Ogawa
21f5744ddb
fix(vite-node): externalize network imports (#4987) 2024-01-17 15:42:30 +01:00
Vladimir
6c5fe49be4
fix(browser): don't fail when calling vi.useFakeTimers (#4992) 2024-01-17 15:37:04 +01:00
Vladimir
8877e22a09
fix(vitest): use development/production conditions when resolving external modules (#4980) 2024-01-17 11:20:43 +01:00
Hiroshi Ogawa
7d9f673e90
chore(deps): update playwright (#4988) 2024-01-17 10:22:51 +01:00
renovate[bot]
3981435702
chore(deps): update dependency @jridgewell/trace-mapping to ^0.3.21 (#4960)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 13:54:25 +01:00
renovate[bot]
9ae0121297
chore(deps): update dependency d3-graph-controller to ^3.0.4 (#4961)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 13:53:58 +01:00
Hiroshi Ogawa
39a7169c8a
fix(vitest): check color support for intercepted console logging (#4966) 2024-01-16 13:53:39 +01:00
Hiroshi Ogawa
6c1cc78bac
fix(browser): fix browser testing url for https (#4855) 2024-01-16 13:50:38 +01:00
Vladimir
952c31dfc4
fix(vitest): correctly find module if it has a version query (#4976) 2024-01-16 13:49:07 +01:00
Hiroshi Ogawa
df0db6a909
fix(vitest): simplify hoist transform check regex to avoid expensive regex match (#4974) 2024-01-16 13:47:46 +01:00
Hiroshi Ogawa
06bae4ddab
fix(expect): implement chai inspect for AsymmetricMatcher (#4942)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-15 15:02:15 +01:00
Hiroshi Ogawa
088dc05933
test: uncomment fixed test (#4948) 2024-01-15 14:34:46 +01:00
Hiroshi Ogawa
db01f6c209
fix(browser): apply inlined workspace config to browser mode vite server (#4947) 2024-01-15 14:34:28 +01:00
Ari Perkkiö
4b41131af2
fix(coverage): thresholds.autoUpdate to work with arrow function configuration files (#4959) 2024-01-15 14:21:44 +01:00
Hogo
3e6668e23e
docs: Add default test name tip (#4832) 2024-01-15 14:12:50 +01:00
Vladimir
6bfdb5f4fc
refactor: improve highlighted function (#4967) 2024-01-15 11:38:33 +01:00
Hiroshi Ogawa
dcf2e9f238
fix(vitest): handle single await vi.hoisted (#4962) 2024-01-15 11:37:38 +01:00
Vladimir Sheremet
b561c3290d chore: release v1.2.0 v1.2.0 2024-01-12 17:06:17 +01:00
Vladimir
c2cceebbfd
feat(vitest): allow overiding package installer with public API (#4936) 2024-01-12 17:04:31 +01:00
Tigran
463bee3846
feat: allow extending toEqual (fix #2875) (#4880)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-12 16:41:39 +01:00
Gergő Takács
7f59a1b858
feat(ui): show unhandled errors on the ui (#4380)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-12 16:06:35 +01:00
Vladimir
3ca31749ed
refactor: make a standard API to run tests inside a worker (#4441) 2024-01-12 14:44:40 +01:00
Vladimir
8c969de286
feat: add syntax highlighting to error messages (#4813) 2024-01-12 14:44:27 +01:00
Ari Perkkiö
96dc6e9aaf
feat(coverage): custom reporter support (#4828) 2024-01-12 14:25:43 +01:00
Yuta Nakamura
480d866aaa
feat: Add typeahead search (#4275) (#4733)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-12 14:25:33 +01:00
Tigran
1326c6efb7
feat: support case-insensitive path matching in cli (fix #3567) (#4911) 2024-01-12 14:25:12 +01:00
Hiroshi Ogawa
ccb258369a
feat(vitest): show slow test duration in verbose reporter on CI (#4929) 2024-01-12 14:20:39 +01:00
Hiroshi Ogawa
43fa6baa6d
feat(vitest): add --disable-console-intercept option to allow opting-out from automatic console log interception (#4786) 2024-01-12 14:19:34 +01:00
Vladimir
1663f5ca00
fix(vitest): add inlined deps to ssr.noExternal so they are added to the module graph (#4945) 2024-01-12 14:06:10 +01:00
Hiroshi Ogawa
9ae9dac955
fix(utils): fix objDisplay default truncate option for test.each title (#4917) 2024-01-12 10:59:02 +01:00
Bob Hennessey
21513f0aa1
docs: fix typo of negation in toSatisfy example (#4939) 2024-01-12 10:57:51 +01:00
Vladimir
ca76f4576d
fix(vitest): use file instead of id for HMR (#4938) 2024-01-11 18:27:01 +01:00
Hiroshi Ogawa
7fd44dc319
fix(browser): remove redundant test failure logging (#4891) 2024-01-11 16:11:17 +01:00
Vladimir
528bd558d1
fix(vitest): call global teardown when using workspaces (#4935) 2024-01-11 14:57:16 +01:00
Vladimir Sheremet
ac66481c86 chore: fix test package names 2024-01-11 14:06:00 +01:00
David Ortner
91719bbd78
fix(happy-dom): window.close() for environment teardown (#4931) 2024-01-11 13:51:35 +01:00
Metehan-Altuntekin
9ec3f743ed
docs: make definition clearer in workspace guide (#4926) 2024-01-10 18:06:01 +01:00
Vladimir
c4eacbb7c6
fix(vitest): show correct error when vi.hoisted is used inside vi.mock and the other way around (#4916) 2024-01-10 15:33:25 +01:00
Vladimir
0e77e697cb
fix(vitest): correctly parse --maxWorkers/--minWorkers (#4924) 2024-01-10 14:58:18 +01:00
Vladimir Sheremet
743795eb40 chore: throw mocker error if pool is vmThreads 2024-01-09 16:41:25 +01:00
Vladimir
ca62f37a88
fix(vitest): don't throw SyntaxError when "await vi.hoisted" is used (#4915) 2024-01-09 16:39:27 +01:00
Vladimir
f99cc3132d
fix(vitest): throw "cannot mock" error only in isolated pools (#4905) 2024-01-09 16:39:18 +01:00
Ari Perkkiö
e9fe41811d
fix(workspace): support overring pool and poolOptions on project level (#4765) 2024-01-09 15:43:50 +01:00
Hiroshi Ogawa
508fced95d
fix(browser): fix updating snapshot during watch mode (#4867)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-01-09 15:42:51 +01:00
Hiroshi Ogawa
4add951622
fix(browser): fix testNamePattern config (#4909) 2024-01-09 15:41:15 +01:00