79 Commits

Author SHA1 Message Date
dsyddall
5e6de2742f
fix(runner): ensure sequential suite overrides sequence.concurrent (#6653)
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
2024-10-12 10:31:47 +09:00
Vladimir
19d64e20ef
fix(vitest): always inline setup files (#6689) 2024-10-11 17:03:33 +02:00
Hiroshi Ogawa
47dde76f31
fix(vitest): show rollup error details as test error (#6686) 2024-10-11 16:06:32 +02:00
Vladimir
946d8bb165
fix(vitest): don't hang with maxConcurrency 0 (#6627) 2024-10-03 16:01:20 +02:00
Vladimir
496bd251ba
fix(vitest): deprecate UserConfig in favor of ViteUserConfig (#6626) 2024-10-03 14:25:32 +02:00
Hiroshi Ogawa
3de00ab60f
fix(runner): fix fixture parsing of lowered async syntax for non arrow functions (#6575) 2024-10-01 13:36:34 +02:00
Hiroshi Ogawa
e7f35214c8
fix: move Vitest.setServer to post configureServer hook to enable import analysis for workspace config loading (#6584) 2024-10-01 13:25:51 +02:00
Hiroshi Ogawa
b553c7d6d5
fix(runner): support fixture parsing of lowered async syntax (#6531) 2024-09-25 10:32:27 +02:00
Hiroshi Ogawa
7727ca8772
fix(workspace): fix glob pattern detection (#6502) 2024-09-25 10:31:33 +02:00
Vladimir
36b5aceb9e
fix(workspace): resolve glob pattern once to avoid name collision (#6489) 2024-09-13 10:17:08 +02:00
Ari Perkkiö
7ab0f4a8ff
feat(browser): support --inspect-brk (#6434) 2024-09-08 19:37:16 +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
Ari Perkkiö
0499a31520
feat(browser): support --inspect (#6433) 2024-09-03 13:21:38 +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
Vladimir
15ec2fba5a
ci: skip exec args tests for node >20.15 (#6375) 2024-08-21 16:45:36 +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
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ö
34199bdf9a
feat(browser): support v8 coverage (#6273) 2024-08-12 16:05:16 +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
Vladimir
3aab8a1ed6
refactor: deprecate all config types from the main Vitest entrypoint, introduce SerializedConfig type (#6205) 2024-07-23 19:28:59 +02:00
Sung Ye In
b1a27d4049
feat(config): allow percentage value for workers option (#5982) 2024-07-01 13:52:45 +02:00
Vladimir
e9b638d40d
fix(api): don't call process.exit manually (#5926) 2024-07-01 09:27:20 +02:00
Vladimir
154cb22de6
feat(browser): add an option to take screenshots if the browser test fails (#5975) 2024-06-25 22:04:55 +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
Ari Perkkiö
a60a140ef7
fix(forks): resolve poolOptions.<name>.isolate from forks options (#5840) 2024-06-11 17:55:15 +02:00
Vladimir
1831008b1f
feat(browser): rename none provider to preview, make it default (#5826) 2024-06-03 13:06:36 +02:00
Vladimir
e20538a36e
feat: add blob reporter (#5663) 2024-05-14 18:57:08 +02:00
Vladimir
f232fdd618
fix!: don't exit process if config failed (#5715) 2024-05-13 16:40:29 +02:00
Vladimir
5c308edc66
feat: remove deprecated options (#5696) 2024-05-09 17:33:30 +02:00
Ari Perkkiö
7f8f9c0c05
fix!: change default pool to 'forks' (#5047) 2024-05-09 17:24:35 +02:00
Vladimir
ee097dbf23
ci: use forks pool for CLI tests (#5679) 2024-05-06 13:52:31 +02:00
Vladimir
ed60e405e1
feat!: remove --segfault-retry (#5514) 2024-05-06 11:57:19 +02:00
Vladimir
dbbbe4304a
feat!: remove the empty suite from the runner (#5435) 2024-05-06 11:56:47 +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
Vladimir
6157282cc0
feat: allow custom host for --inspect and --inspect-brk (#5509) 2024-04-08 16:54:45 +02:00
Ari Perkkiö
2a8e2fbf90
test: use startVitest instead of execa (#5439) 2024-03-31 11:09:28 +02:00
Han
d7e8b53ed0
feat(config): deprecate cache.dir option (#5229) 2024-03-15 10:37:58 +01:00
Vladimir
51d1d47263
fix(vitest): correctly override api with --no-api flag (#5386) 2024-03-14 19:08:56 +01:00
Ari Perkkiö
07ec3779ab
fix(coverage): prevent reportsDirectory from removing user's project (#5376) 2024-03-14 16:25:36 +01:00
Han
356db87b71
feat(config): add shuffle.files and shuffle.tests options (#5281) 2024-03-14 15:50:03 +01:00
Ari Perkkiö
29f98cd3ce
fix(workspace): throw error when browser mode and @vitest/coverage-v8 are used (#5250) 2024-02-27 13:25:10 +01:00
Somhairle MacLeòid
bc5b2d0455
fix: Prevent merging of poolOptions (#5221) 2024-02-16 17:49:34 +01:00
Vladimir
a931646fb9
refactor: add CLI config schema to make sure we don't miss options (#5126)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
Co-authored-by: Lorenzo Bloedow <lorenzobloedow@gmail.com>
2024-02-08 16:48:44 +01:00
Hiroshi Ogawa
a55adac6c1
fix(vm): handle disableConsoleIntercept config (#5074) 2024-01-30 08:57:35 +01:00
Vladimir
8877e22a09
fix(vitest): use development/production conditions when resolving external modules (#4980) 2024-01-17 11:20:43 +01:00
Hiroshi Ogawa
39a7169c8a
fix(vitest): check color support for intercepted console logging (#4966) 2024-01-16 13:53:39 +01:00