62 Commits

Author SHA1 Message Date
Vladimir
a1cb9719a4
fix!: remove deprecated APIs (#8428) 2025-08-12 18:25:50 +02:00
Vladimir
1a81c21d28
feat(runner)!: set mode to todo if no function is passed down to test or describe (#8346) 2025-07-28 15:24:32 +02:00
Vladimir
9be01ba594
feat!: use module-runner instead of vite-node (#8208)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-07-28 13:43:53 +02:00
Ari Perkkiö
013bf2cb2c
fix!: ignore --standalone when CLI filename filter is used (#8262) 2025-07-15 16:26:09 +02:00
Vladimir
497cb94498
test: don't use __dirname and __filename in tests and configs (#8314) 2025-07-15 15:02:19 +02:00
Vladimir
22f7f2db51
fix!: remove UserConfig type in favor of ViteUserConfig (#8196) 2025-06-20 12:34:20 +02:00
Vladimir
14c507200a
feat!: simplify default exclude pattern (#6287) 2025-06-20 10:52:26 +02:00
Zhaolin Liang
6869969120
fix(expect): handle async errors in expect.soft (#8145) 2025-06-11 16:19:48 +02:00
Ari Perkkiö
dfe81a67ac
fix(pool): throw if user's tests use process.send() (#8125) 2025-06-09 09:06:02 +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
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
Vladimir
e84e2184ef
fix: generate a separate config for "vitest init browser" instead of a workspace file (#7934) 2025-05-17 15:33:00 +02:00
Vladimir
464218f42c
fix: try to catch unhandled error outside of a test (#7968) 2025-05-13 19:28:56 +02:00
Vladimir
ba6da4d070
fix(typecheck): don't panic during vitest list command (#7933) 2025-05-06 22:36:42 +02:00
Vladimir
41beb261e6
feat: deprecate workspace in favor of projects (#7923)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-05-05 18:49:26 +02:00
Vladimir
ca743ede68
docs: deprecate old context augmentation and recommend test.extend (#7703) 2025-05-02 14:05:35 +02:00
Vladimir
f9eacbc55d
fix(vite-node): add ERR_MODULE_NOT_FOUND code error if module cannot be loaded (#7776) 2025-04-18 09:17:01 +02:00
Vladimir
69ca425c69
fix(reporter): print test only once in the verbose mode (#7738) 2025-03-31 12:12:41 +02:00
Janis Jansen
2a8520a837
feat: support --configLoader CLI option (#7574)
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
2025-03-26 10:06:42 +01:00
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
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
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
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
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
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
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
80f8bbf4ab
fix: misc fix for vite 6 ecosystem ci (#6867) 2024-11-14 10:18:31 +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
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
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
Hiroshi Ogawa
ad6e72fc8e
fix(runner): async assertion auto await should timeout (#6391) 2024-09-03 11:21:00 +02:00
Hiroshi Ogawa
e03683c511
fix(snapshot): improve inline snapshot inside loop rejection (#6339) 2024-08-19 10:04:28 +02:00