1210 Commits

Author SHA1 Message Date
Hiroshi Ogawa
b553c7d6d5
fix(runner): support fixture parsing of lowered async syntax (#6531) 2024-09-25 10:32:27 +02:00
Hiroshi Ogawa
fb79792dc9
fix(runner): mark tests as skipped when beforeAll failed (#6524) 2024-09-25 10:32:08 +02:00
Hiroshi Ogawa
7727ca8772
fix(workspace): fix glob pattern detection (#6502) 2024-09-25 10:31:33 +02:00
Hiroshi Ogawa
f7da6199d1
fix(expect): fix toBeDefined with expect.poll (#6562) 2024-09-25 10:30:46 +02:00
Hiroshi Ogawa
ea2d429b20
fix(browser): fix dynamic import inside worker (#6569) 2024-09-25 10:24:02 +02:00
Ari Perkkiö
1371ca6a6f
fix(coverage): remove empty coverage folder on test failure too (#6547) 2024-09-25 08:32:43 +03:00
Hiroshi Ogawa
91f859979a
fix(vite-node): fix esm false-detection inside comment (#6506) 2024-09-17 08:45:02 +03:00
Vladimir
36b5aceb9e
fix(workspace): resolve glob pattern once to avoid name collision (#6489) 2024-09-13 10:17:08 +02:00
Vladimir
94a186ec91
fix(ui): render project name consistently (#6329) 2024-09-12 14:28:16 +02:00
Vladimir
0b4da69e11
fix: userEvent works consistently between providers (#6480) 2024-09-12 13:49:15 +02:00
Vladimir
ac698b1c8d
fix: expect.getState().testPath always returns correct path (#6472) 2024-09-11 20:30:59 +02:00
Vladimir
0223bb79df
fix(ui): remove "filters" flickering (#6463) 2024-09-09 09:39:19 +02:00
Vladimir
85e42bc88a
ci: disable vmThreads test for now (#6462) 2024-09-09 08:33:13 +02:00
Ari Perkkiö
7ab0f4a8ff
feat(browser): support --inspect-brk (#6434) 2024-09-08 19:37:16 +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
Chris Wheeldon
03208017fb
fix: allow inlining vite's cached dependencies (#6284) 2024-09-04 11:08:29 +02:00
Ari Perkkiö
0499a31520
feat(browser): support --inspect (#6433) 2024-09-03 13:21:38 +02:00
Juan Sanchez
c3b2757cd3
feat(vitest): allow env to be stubbed to undefined (#6359)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-09-03 11:22:20 +02:00
Hiroshi Ogawa
ad6e72fc8e
fix(runner): async assertion auto await should timeout (#6391) 2024-09-03 11:21:00 +02:00
Vladimir
cf148645c9
feat(browser): support userEvent.upload in playwright provider (#6442) 2024-09-02 18:33:22 +02:00
Vladimir
c853126e90
fix(browser): correctly run in-source tests in the browser (#6440) 2024-09-02 15:46:06 +02:00
Vladimir
7188709c60
chore: update types/node and run tests on Node 22 (#6437) 2024-09-02 14:54:28 +02:00
Vladimir Sheremet
399ee2e602
test: skip exec-args on node 22 2024-09-02 14:28:21 +02:00
renovate[bot]
84a066af0e
chore(deps): update dependency @antfu/eslint-config to v3 (#6435)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-09-02 10:16:37 +02:00
Hiroshi Ogawa
372a2c26a8
test: fix browser provider (#6427) 2024-08-30 08:40:29 +03:00
Mahmood Alhawaj
008f00b2b3
feat(cli): Extend existing list command to output only a list of file names (#6392)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-08-29 17:53:13 +02:00
LuciNyan
f6217a22e7
fix(types): Allow Callbacks Passed to before*/after* to Return Anything (#6393) 2024-08-27 15:03:47 +02:00
Vladimir
69a4f9d38b
refactor: deprecate WorkspaceSpec in favor of TestSpecification (#6401) 2024-08-26 16:40:56 +02:00
Vladimir
95f0203f27
feat(mocker): introduce @vitest/mocker package, allow { spy: true } instead of a factory (#6289) 2024-08-21 17:17:27 +02:00
Vladimir
15ec2fba5a
ci: skip exec args tests for node >20.15 (#6375) 2024-08-21 16:45:36 +02:00
Vladimir
163d76248c
fix(vitest): always resolve vitest to the root version (#6369) 2024-08-20 13:46:04 +02:00
Ari Perkkiö
da52d23fd1
fix(coverage): use project specific vitenode for uncovered files (#6044) 2024-08-20 09:43:32 +02:00
Vladimir
f5d7999e46
refactor(api): rename TestFile to TestModule (#6356) 2024-08-19 10:16:45 +02:00
Vladimir
874a121e97
feat(api): make spec into a class instead of a tuple (#6355) 2024-08-19 10:08:54 +02:00
Hiroshi Ogawa
e03683c511
fix(snapshot): improve inline snapshot inside loop rejection (#6339) 2024-08-19 10:04:28 +02:00
Benjamin Devine
8ff6356059
feat(vitest): add vi.advanceTimersToNextFrame (#6347)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-08-15 10:38:44 +02:00
Hiroshi Ogawa
85fb94a308
test: test importing a file generated during test (#6301)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-08-13 15:13:28 +02:00
Hiroshi Ogawa
1606f34f27
fix(snapshot): reject multiple toMatchInlineSnapshot updates at the same location (#6332) 2024-08-13 12:59:58 +02:00
Vladimir
153ff01b10
fix(typecheck): run both runtime and typecheck tests if typecheck.include overlaps with include (#6256) 2024-08-13 12:42:39 +02:00
Hiroshi Ogawa
bc333dbae7
test: fix test/snapshots and add it to ci (#6333) 2024-08-13 09:05:54 +02:00
Vladimir
afdcb8f2b3
fix(workspace): correctly resolve workspace globs and file paths (#6316) 2024-08-12 19:13:28 +02:00
Sung Ye In
f5e0b9877f
feat(vitest): add return type and promisable mockFactory (#6139)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-08-12 16:14:12 +02:00
Ari Perkkiö
5932a7f988
feat(coverage): add --exclude-after-remap (#6309) 2024-08-12 16:05:53 +02:00
Ari Perkkiö
34199bdf9a
feat(browser): support v8 coverage (#6273) 2024-08-12 16:05:16 +02:00
Vladimir
93abfa065f
test: make react example more stable (#6324) 2024-08-12 13:32:43 +02:00
Ari Perkkiö
91dea8c146
fix(coverage): v8 to warn instead of crash when conversion fails (#6318) 2024-08-12 13:03:03 +02:00
Ari Perkkiö
1f6cb59f13
fix(coverage): v8 to support source maps with multiple sources (#6120)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-08-12 13:02:44 +02:00
Ari Perkkiö
e662c7b2c3
fix(coverage): warn if vitest and @vitest/* versions don't match (#6317) 2024-08-12 13:02:12 +02:00
Vladimir
d7951125c2
docs: add vitest-browser packages to Browser Mode examples (#6314) 2024-08-09 16:26:46 +02:00