57 Commits

Author SHA1 Message Date
Raul Macarie
d45f964c16
feat(browser): introduce toMatchScreenshot for Visual Regression Testing (#8041) 2025-07-22 15:19:06 +02:00
Vladimir
1e60c4f440
fix!: remove Node types from the main entry point, use vitest/node instead (#8200) 2025-06-20 17:01:02 +02:00
Vladimir
22f7f2db51
fix!: remove UserConfig type in favor of ViteUserConfig (#8196) 2025-06-20 12:34:20 +02:00
Ari Perkkiö
657e83f9fa
fix(cli): vitest run --watch should be watch-mode (#8128) 2025-06-10 17:33:14 +02:00
Vladimir
9cbfc231a0
feat(vitest): allow per-file and per-worker fixtures (#7704)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-05-31 14:07:34 +02:00
Vladimir
b03f2098a5
feat: annotation API (#7953) 2025-05-30 18:56:14 +02:00
Vladimir
910892ed93
chore: simplify working with UI package in dev (#8044) 2025-05-29 10:37:58 +02:00
Vladimir
703581b62f
fix: apply browser CLI options only if the project has the browser set in the config already (#7984) 2025-05-19 17:56:45 +02:00
Ari Perkkiö
4af5df33b5
feat: support custom colors for test.name (#7809) 2025-05-05 16:21:24 +02:00
Vladimir
03660f9d57
fix(browser): correctly inherit CLI options (#7858) 2025-04-29 17:41:09 +02:00
Ari Perkkiö
3fa7b78cbc
test: reduce max thread count when vitest-in-vitest (#7829) 2025-04-14 07:58:48 +03:00
renovate[bot]
4b0451d9e5
chore(deps): update dependency @antfu/eslint-config to v4 (#7407)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2025-03-11 16:06:15 +01:00
btea
7155aefa36
chore: use pnpm catalog (#7590) 2025-03-07 14:10:38 +01:00
Ari Perkkiö
8fe641b40a
fix(init): invalid browser config (#7475) 2025-02-13 16:15:39 +02:00
Ari Perkkiö
3c8050e69a
fix: don't toggle cli cursor on non-TTY (#7336) 2025-02-03 14:34:21 +09:00
Vladimir
dff4406d9c
fix: filter projects eagerly during config resolution (#7313)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-01-23 14:00:59 +01:00
Ari Perkkiö
8cab9601bb
fix: colors on forks pool (#7090) 2025-01-14 08:47:32 +02:00
Ari Perkkiö
d243c78214
test: use tinyexec for execArgv tests (#7151) 2024-12-30 16:37:12 +01:00
Ari Perkkiö
6d23f4b11c
fix(benchmark): rewrite reporter without log-update (#7019) 2024-12-26 10:35:10 +02:00
Vladimir
78b62ffe1d
feat: allow multi-browser configuration (#6975) 2024-12-19 14:21:41 +01:00
Vladimir
9a1b501223
feat: prepare the Vitest API to be stable (#6962) 2024-12-10 11:12:47 +01:00
Vladimir
a3bef598ee
feat: print project name as a label (#6925) 2024-12-01 23:37:41 +01:00
Vladimir
93b67c24b1
fix: throw an error and a warning if .poll, .element, .rejects/.resolves, and locator.* weren't awaited (#6877) 2024-11-13 13:16:24 +01:00
Hiroshi Ogawa
07c19b8a04
test: fix webcrypto on node 18 (#6892) 2024-11-11 09:56:55 +02:00
Vladimir
b01df47da0
fix: stop the runner before restarting, restart on workspace config change (#6859) 2024-11-08 10:02:23 +01:00
Vladimir
169028f03a
feat(browser): allow custom HTML path, respect plugins transformIndexHtml (#6725) 2024-10-25 14:38:16 +02:00
Hiroshi Ogawa
de74785e05
chore(deps): update @antfu/eslint-config v3.8.0 (#6751) 2024-10-23 13:18:42 +02:00
Vladimir
a939779f1d
fix(browser): increment browser port automatically if there are several projects with browser.enabled (#6717) 2024-10-16 08:55:40 +02:00
Ari Perkkiö
5f757900b5
refactor: replace strip-ansi with stripVTControlCharacters from node:util (#6608) 2024-10-02 09:50:19 +02:00
ziebam
028256491d
chore(deps): replace execa with tinyexec (#6454)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-09-06 13:37:19 +02:00
Vladimir
afdcb8f2b3
fix(workspace): correctly resolve workspace globs and file paths (#6316) 2024-08-12 19:13:28 +02:00
Ari Perkkiö
34199bdf9a
feat(browser): support v8 coverage (#6273) 2024-08-12 16:05:16 +02:00
Vladimir
717bb2ea51
test: make watcher tests more stable on Mac OS (#6136) 2024-07-15 15:19:02 +02:00
Vladimir
583dd8a986
feat(vitest)!: add "vitest list" API to print collected tests without running them (#6013) 2024-07-03 17:51:33 +02:00
Vladimir
49e973cb92
feat(browser): add "init" command for browser tests (#5960) 2024-06-25 15:22:51 +02:00
Vladimir
471cf97b0c
chore: always require curly braces (#5885)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-06-16 18:10:10 +02:00
Vladimir
7b2f64cfa3
feat: implement module mocking in browser mode (#5765) 2024-05-31 11:19:38 +02:00
Vladimir
f232fdd618
fix!: don't exit process if config failed (#5715) 2024-05-13 16:40:29 +02:00
Vladimir
bcccce6df6
fix!: add correct location and snapshot fields in json reporter (#5434) 2024-05-07 12:36:58 +02:00
Vladimir
959247e90f
refactor: remove old and outdated examples (#5611) 2024-04-30 12:27:01 +02:00
Vladimir
7c993e9454
test: standardising internal test (#5600) 2024-04-26 15:43:27 +02:00
Ari Perkkiö
780b187f22
feat(api): startVitest() to accept stdout and stdin (#5493) 2024-04-23 15:09:20 +02:00
Ari Perkkiö
2a8e2fbf90
test: use startVitest instead of execa (#5439) 2024-03-31 11:09:28 +02:00
Ari Perkkiö
e77c553ffb
fix: --inspect-brk to pause before execution (#5355) 2024-03-14 15:55:06 +01:00
Vladimir
8877e22a09
fix(vitest): use development/production conditions when resolving external modules (#4980) 2024-01-17 11:20:43 +01:00
Vladimir Sheremet
ac66481c86 chore: fix test package names 2024-01-11 14:06:00 +01:00
Vladimir Sheremet
2aafabc61d chore: update package.json 2023-11-10 13:24:26 +01:00
Vladimir Sheremet
dd7ae1f46a chore: add type: module, remove old examples 2023-11-10 13:24:26 +01:00
Ari Perkkiö
8b4a44ad16
feat!: support multiple parallel child_process (#3925) 2023-09-27 09:39:26 +02:00
Stefan Vojvodic
c03faa2204
feat(coverage): add allowExternal option (#3894)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2023-08-21 18:34:40 +02:00