151 Commits

Author SHA1 Message Date
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
Hiroshi Ogawa
43fa6baa6d
feat(vitest): add --disable-console-intercept option to allow opting-out from automatic console log interception (#4786) 2024-01-12 14:19:34 +01:00
Vladimir
1663f5ca00
fix(vitest): add inlined deps to ssr.noExternal so they are added to the module graph (#4945) 2024-01-12 14:06:10 +01:00
Hiroshi Ogawa
9ae9dac955
fix(utils): fix objDisplay default truncate option for test.each title (#4917) 2024-01-12 10:59:02 +01:00
Ari Perkkiö
e9fe41811d
fix(workspace): support overring pool and poolOptions on project level (#4765) 2024-01-09 15:43:50 +01:00
Yuta Nakamura
5053a5dd7e
fix: correct option name --no-parallelism (#4831) 2023-12-31 12:43:38 +02:00
Vladimir
4d55a026d2
feat: add --no-isolate flag to improve performance, add documentation about performance (#4777)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-12-19 12:57:03 +01:00
Vladimir
fd5d7e66e4
feat: add --no-file-parallelism, --maxWorkers, --minWorkers flags (#4705)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2023-12-19 11:35:22 +01:00
Vladimir
67d93eda66
feat: add --workspace option, fix root resolution in workspaces (#4773)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2023-12-19 11:34:11 +01:00
Vladimir
8dabef860a
fix(vitest): pass down CLI options to override workspace configs (#4774) 2023-12-18 18:28:52 +01:00
Ari Perkkiö
9cc3668960
fix(types): defineWorkspace fix intellisense and report type errors (#4743) 2023-12-15 11:08:37 +01:00
Ari Perkkiö
a7931bbf76
fix(cli): --coverage.all=false resolved incorrectly (#4697) 2023-12-09 17:58:58 +01:00
Hiroshi Ogawa
94f9a3caea
fix: apply retry and bail from test config file (#4530) 2023-11-18 09:30:49 +01:00
Ari Perkkiö
4953410e8d
feat!(coverage): glob based coverage thresholds (#4442) 2023-11-17 19:24:04 +01:00
Vladimir
7dee832d8d
fix(vitest): use correct type for defineProject to allow usage in mergeConfig (#4498) 2023-11-14 16:18:08 +01:00
Vladimir Sheremet
dd7ae1f46a chore: add type: module, remove old examples 2023-11-10 13:24:26 +01:00
Adrien Cacciaguerra
b8ca38730b
fix(vitest): pass correct mode in vitest config function (#4399) 2023-10-31 11:45:09 +01:00
Ari Perkkiö
98fe3d5540
fix: nextTick mocking error message to mention correct config option (#4215) 2023-10-02 16:45:53 +02:00
Ari Perkkiö
114a993c00
feat!: add support for pool and poolOptions, remove old flags (#4172) 2023-10-02 14:13:40 +02:00
Ari Perkkiö
8b4a44ad16
feat!: support multiple parallel child_process (#3925) 2023-09-27 09:39:26 +02:00
Ari Perkkiö
a90d64fee3
feat!: remove @vitest/coverage-c8 package (#3614) 2023-07-11 11:46:41 +02:00
imentu
9a11762756
feat: introduce global configuration for retry setting (fix #3598) (#3603)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-06-27 18:08:25 +02:00
Ari Perkkiö
821126f165
feat!: add @vitest/coverage-v8 package (#3339) 2023-06-06 19:00:15 +02:00
Ari Perkkiö
9fbb8d31b6
test: reduce usage of execa, add runVitest test utils (#3436) 2023-05-24 09:15:52 +02:00
Ari Perkkiö
ddbba39625
fix(reporter): prevent deleting test reports stored in coverage directory (#3331) 2023-05-10 13:34:19 +02:00
Ari Perkkiö
93fbd02d89
fix(cli): improve cac errors when mixing boolean and dot notation (#3302) 2023-05-04 15:26:14 +02:00
Vladimir
6aff0176db
feat!: move snapshot implementation into @vitest/snapshot (#3032) 2023-03-29 15:35:51 +02:00
Vladimir
0f44d2c81f
feat: implement istanbul coverage support for browser testing (#3040)
Co-authored-by: AriPerkkio <ari.perkkio@gmail.com>
2023-03-28 11:13:48 +02:00
Ari Perkkiö
36087d1edf
fix: --inspect to work inside workers (#2983) 2023-03-15 20:44:15 +01:00