77 Commits

Author SHA1 Message Date
Vladimir
6adecb9036
feat(vitest): allow conditional context.skip(boolean) (#7659)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-03-17 13:05:26 +01:00
Hiroshi Ogawa
e4b34b81e6
test: test hook cleanup timeout correctly (#7651) 2025-03-11 14:40:31 +01:00
btea
7155aefa36
chore: use pnpm catalog (#7590) 2025-03-07 14:10:38 +01:00
Vladimir
5eb4cd1fa5
fix(browser): fail playwright timeouts earlier than a test timeout (#7565)
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
2025-03-07 09:54:16 +01:00
Hiroshi Ogawa
34aa322bf2
fix(vite-node): fix source map of inlined node_modules (#7557) 2025-03-07 09:50:40 +01:00
Hiroshi Ogawa
ca9ffac5f7
fix(runner): fix and simplify Task.suite initialization (#7414) 2025-03-06 16:03:29 +01:00
Hiroshi Ogawa
0c2924b7ae
fix(runner): fix beforeEach/All cleanup callback timeout (#7500) 2025-03-03 17:11:37 +01:00
jyc.dev
d5cb821276
fix(snapshot): allow inline snapshot calls on same location with same snapshot (#7464)
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
2025-02-27 11:49:45 +09:00
Hiroshi Ogawa
3ae5514e43
test: re-enable skipped test for Vite 6 (#7558) 2025-02-25 09:58:18 +02:00
Hiroshi Ogawa
28ad51b16e
test: fix flaky browser-multiple.test.ts (#7510) 2025-02-21 08:28:38 +01:00
Ben McCann
b62ac2280e
chore: use tinyglobby instead of fast-glob in Vitest (#7504) 2025-02-18 08:45:47 +02:00
Ari Perkkiö
5e21181186
test: replace browser.name with browser.instances (#7477) 2025-02-13 17:11:26 +02:00
Ari Perkkiö
8fe641b40a
fix(init): invalid browser config (#7475) 2025-02-13 16:15:39 +02: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
Hiroshi Ogawa
c60ee27c06
fix(runner): timeout long sync hook (#7289) 2025-01-21 15:16:36 +01:00
Vladimir
ef1aa89333
fix: don't await an empty timeout after every test (#7281) 2025-01-17 15:23:28 +01:00
Vladimir
1c2b210d16
fix(api): don't report events during vitest list (#7257) 2025-01-15 16:33:15 +01:00
Vladimir
766624abd6
feat: introduce the new reporter API (#7069)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-01-14 16:46:44 +01:00
Arya Emami
8dd2071376
chore: fix various typos (#7054) 2025-01-08 14:21:45 +01:00
Ari Perkkiö
1d45895512
fix(runner): mark tests of describe.todo as 'todo' (#7171) 2025-01-04 12:28:53 +01:00
Hiroshi Ogawa
bfea79f54e
test: remove redundant snapshot name (#7114) 2024-12-27 10:13:19 +01: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
Thomas Riffard
2fb585aea6
fix(runner): long synchronous tasks does not time out (fix #2920) (#6944)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-12-09 15:57:56 +01:00
Mohamed Hubail
751e2dcecd
feat(cli): Support location filters for suites (#7048) 2024-12-09 09:50:21 +01:00
Vladimir
407f10e48c
feat: print a deprecation warning if suite or test uses object as the third argument (#7031) 2024-12-05 17:18:59 +01:00
Vladimir
a3bef598ee
feat: print project name as a label (#6925) 2024-12-01 23:37:41 +01:00
Mohamed Hubail
4d94b956da
feat(cli): Support specifying a line number when filtering tests (#6411)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-12-01 23:34:46 +01:00
Vladimir
98c7e51918
refactor: deprecate environmentMatchGlobs and poolMatchGlobs in favor of workspace (#6922) 2024-12-01 23:17:14 +01:00
Hiroshi Ogawa
7b35d13a6f
fix(typecheck): fix typecheck collect on Vite 6 (#6972) 2024-11-27 10:18:55 +01:00
Vladimir
171041af5e
refactor: merge TestProject with WorkspaceProject (#6906)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-11-18 10:54:09 +01:00
Hiroshi Ogawa
80f8bbf4ab
fix: misc fix for vite 6 ecosystem ci (#6867) 2024-11-14 10:18:31 +01:00
Vladimir Sheremet
82f2b50863
test: don't start the server in watch mode 2024-11-13 17:20:11 +01:00
Vladimir
697c35c52d
feat: allow a custom note when calling ctx.skip() dynamically (#6805) 2024-11-13 17:03:12 +01:00
Vladimir
417bdb423d
fix(browser): init browsers eagerly when tests are running (#6876) 2024-11-13 16:03:43 +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
Vladimir
df6d750b79
fix(vitest): don't fail if the working directory starts with a lowercase drive letter (#6779) 2024-10-25 15:20:10 +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
Vladimir
079185387b
fix(browser): optimize expect-type (#6713) 2024-10-15 11:55:15 +02:00
Hiroshi Ogawa
4ec301b077
test: use list cli args from test.each (#6694) 2024-10-12 14:14:08 +02:00
Vladimir
70baaaa9f6
fix(vitest): use fast-glob instead of tinyglobby in Vitest (#6688) 2024-10-12 09:24:44 +09:00
Vladimir
7a0de0a7c2
perf: reuse full name in reported tasks, update generator types (#6666) 2024-10-08 21:29:38 +02:00
Vladimir
383f179166
fix(browser): throw an error if "@vitest/browser/context" is imported outside of the browser mode (#6570) 2024-10-02 18:17:36 +02:00
Vladimir
1497134e4b
fix(runner): guard test hook callback (#6604) 2024-10-01 15:58:53 +02:00
Ari Perkkiö
7dd2ecf8e2
test: disable vmThreads test for now (#6567) 2024-09-26 16:39:32 +02:00
Superchupu
c321a3fd29
chore: replace fast-glob with tinyglobby (#6274) 2024-09-06 14:49:25 +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
Hiroshi Ogawa
ad6e72fc8e
fix(runner): async assertion auto await should timeout (#6391) 2024-09-03 11:21:00 +02:00
Vladimir
7188709c60
chore: update types/node and run tests on Node 22 (#6437) 2024-09-02 14:54:28 +02:00