1441 Commits

Author SHA1 Message Date
Vladimir
63949b1d73
feat(browser): introduce and, or and filter locators (#7463)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-03-20 15:19:50 +01:00
Vladimir
e5851e4b86
feat(runner): add test.scoped to override test.extend fixtures per-suite (#7233) 2025-03-19 14:57:29 +01:00
Vladimir
20a5d4bfc4
feat: add "configureVitest" plugin hook (#7349)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2025-03-19 14:18:14 +01:00
Ari Perkkiö
ba9b51cccc
fix(reporter): --hideSkippedTests should hide suites too (#7695) 2025-03-19 15:16:04 +09:00
Ari Perkkiö
888793c31f
test: update reporter snapshot (#7689) 2025-03-17 16:26:57 +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
ea3d67b03b
feat: allow array element for test.each/for title formatting (#7522) 2025-03-17 13:03:51 +01:00
Hiroshi Ogawa
eacab25e77
feat: add diff.maxDepth option and set non-Infinity value as a default to reduce crash (#7481) 2025-03-17 13:03:01 +01:00
Ari Perkkiö
f9e1cb494e
feat(reporter): --silent=passed-only to log failed tasks only (#7530) 2025-03-17 13:02:27 +01:00
Ari Perkkiö
5eba60ae12
feat(reporter): always render test time (#7529)
Co-authored-by: Michał Grzegorzewski <4864089+spamshaker@users.noreply.github.com>
2025-03-17 13:02:12 +01:00
Ryo Ochiai
df3477076c
feat: Introduce %$ option to add number of the test to its title (#7412) 2025-03-17 13:01:19 +01:00
Ari Perkkiö
422ba66bfa
fix(coverage): browser mode + coverage.all (#7597) 2025-03-17 12:52:07 +01:00
Arya Emami
3fdee3da8b
chore: fix various typos (#7663) 2025-03-14 09:20:41 +01:00
Hiroshi Ogawa
29f5a848f7
fix(vite-node): fix missing buildStart (#7652) 2025-03-14 09:12:07 +01: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
Hiroshi Ogawa
2d4537fe81
docs: add mockClear/mockReset/mockRestore examples (#7633) 2025-03-11 15:11:15 +01:00
Pengoose
46d93a2e89
fix: support custom toString method in %s format (#7637) 2025-03-11 14:49:29 +01:00
Hiroshi Ogawa
3fb3fbf858
fix: fix getState().testPath during collection with no isolation (#7640) 2025-03-11 14:48:01 +01:00
Hiroshi Ogawa
e4b34b81e6
test: test hook cleanup timeout correctly (#7651) 2025-03-11 14:40:31 +01:00
Hiroshi Ogawa
20b39c41e3
test(vite-node): test css import (#7653) 2025-03-11 14:39:54 +01:00
Hiroshi Ogawa
268a19e19a
fix(runner): show stacktrace on hook timeout error (#7502) 2025-03-11 14:35:53 +01:00
Joel Gallant
ff42bcb381
fix(web-worker): ensure removeEventListener is bound to worker (#7631) 2025-03-11 08:40:45 +02: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
0fb21faa34
fix: fix toHaveBeenCalledWith(asymmetricMatcher) with undefined arguments (#7624) 2025-03-07 09:44:44 +01:00
Hiroshi Ogawa
6ece0d9e63
test: ignore broken unhandled rejection error stack test (#7622) 2025-03-07 08:37:30 +01:00
Hiroshi Ogawa
db14ab714d
fix: cleanup vitest in public resolveConfig API (#7623) 2025-03-07 08:37:13 +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
btea
4325ac6793
fix: correctly split the argv string (#7533) 2025-02-27 13:45:23 +01:00
Hiroshi Ogawa
c0f47e03b0
fix(vite-node): fix buildStart on Vite 6 (#7480) 2025-02-27 13:43:02 +01:00
Vladimir
fee90d855b
fix(browser): print related test file and potential test in unhandled errors (#7564) 2025-02-27 13:54:38 +09: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
Vladimir
4b5ed90213
fix: use browser.isolate instead of config.isolate (#7560) 2025-02-26 17:18:16 +01:00
Vladimir
e2c570b687
fix(browser): improve source map handling for bundled files (#7534) 2025-02-25 16:56:58 +01:00
Hiroshi Ogawa
3ae5514e43
test: re-enable skipped test for Vite 6 (#7558) 2025-02-25 09:58:18 +02:00
Vladimir
b1949c97c2
fix(browser): support webdriverio 9 (#7553) 2025-02-24 18:45:33 +01:00
Hiroshi Ogawa
28ad51b16e
test: fix flaky browser-multiple.test.ts (#7510) 2025-02-21 08:28:38 +01:00
Pengoose
d5765f71b3
fix(expect): Correct generic MatchersObject this type in expect.extend (#7526) 2025-02-20 10:41:23 +09:00
Hiroshi Ogawa
83e3d515d3
test: tweak browser non US key input test (#7490) 2025-02-19 16:35:07 +01:00
Hiroshi Ogawa
f71004ffa3
fix(spy): clear/reset/restore mocks in stack order (#7499) 2025-02-19 10:06:13 +09:00
Ari Perkkiö
027ce9bbf7
fix(reporters): render tasks in tree when in TTY (#7503) 2025-02-18 09:35:03 +02:00
Ben McCann
b62ac2280e
chore: use tinyglobby instead of fast-glob in Vitest (#7504) 2025-02-18 08:45:47 +02:00
Hiroshi Ogawa
167a98d77c
fix: exclude queueMicrotask from default fake timers to not break node fetch (#7505) 2025-02-18 08:45:06 +02:00
Ari Perkkiö
f31a07bb35
fix(coverage): preserve moduleExecutionInfo in non-isolated runs (#7486) 2025-02-13 19:23:37 +02:00
Vladimir
01b91b5eff
test: temporary patch to unblock CI (#7485) 2025-02-13 16:49:35 +01:00
Ari Perkkiö
1f2e55522a
fix(coverage): vite-node to pass correct execution wrapper offset (#7417) 2025-02-13 17:13:22 +02:00
Ari Perkkiö
cb48e64e35
test(coverage): format snapshots with formatSummary (#7482) 2025-02-13 17:12:41 +02:00
Ari Perkkiö
5e21181186
test: replace browser.name with browser.instances (#7477) 2025-02-13 17:11:26 +02:00