344 Commits

Author SHA1 Message Date
Ari Perkkiö
4953410e8d
feat!(coverage): glob based coverage thresholds (#4442) 2023-11-17 19:24:04 +01:00
jwangbychance
b92f108c35
style: capitalise a few sentences for consistency (#4513) 2023-11-16 09:13:38 +01:00
Vladimir
cc19117d30
chore: migrate to flat eslint config (#4472) 2023-11-11 08:07:39 +01:00
Ari Perkkiö
b3327a64c9
fix(coverage): exclude files and directories starting with dot by default (#4428) 2023-11-04 14:28:18 +01:00
Vladimir
a75228f1d2
feat: implement provide/inject API to transfer data from the main thread (#4422) 2023-11-04 14:28:02 +01:00
Vladimir
ab55637653
fix(browser): disable hijacking ES modules until vi.mock is implemented (#4414) 2023-11-02 15:58:06 +01:00
Adrien Cacciaguerra
9021e8b84b
feat(vitest): expose execArgv to the different pools (#4383) 2023-10-31 16:30:44 +01:00
Vladimir
d40b3a5813
refactor!: remove EnhancedSpy type, deprecate SpyInstance, improve mocks and vi documentation (#4400)
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-10-31 12:20:41 +01:00
Vladimir
5cdeb558c2
feat!: move browser providers to @vitest/browser package (#4364) 2023-10-27 09:02:11 +02:00
Vladimir
29299f3ce2
fix!: remove deprecated node loader (#4371) 2023-10-25 15:11:47 +02:00
Allison Pratt
d990640d65
docs: reporter guide (#4336)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-10-23 17:41:02 +02:00
Clark Fischer
6b73473fa4
feat(vitest): filter stacktraces (fix #1999) (#4338) 2023-10-23 17:04:34 +02:00
Vladimir
a1aadd713c
feat(vitest): run typecheck during tests (#4324) 2023-10-19 11:21:51 +02:00
Rahul Singh
df4606dca2
docs: typo on config page (#4334) 2023-10-19 09:07:40 +02:00
Dylan Piercey
eac7776521
feat: add Marko example and include code coverage for Marko files (#4263) 2023-10-08 18:53:36 +02:00
Ari Perkkiö
5a741ca24a
feat!: enable coverage.all by default (#4265) 2023-10-07 10:09:16 +02:00
Chris Fougner
611f0b211a
docs: make it more explicit where options go (#4266) 2023-10-07 10:09:06 +02:00
Dunqing
de52215223
docs: update vite.config.ts to vitest.config.ts (#4259) 2023-10-06 11:34:20 +02:00
Vladimir
0646197e13
fix(vitest): don't initialize globalSetup if workspace doesn't run tests (#4213) 2023-10-02 16:46:09 +02:00
Vladimir Sheremet
4da7caa92a chore: fix inconsistencies 2023-10-02 14:18:45 +02:00
Ari Perkkiö
114a993c00
feat!: add support for pool and poolOptions, remove old flags (#4172) 2023-10-02 14:13:40 +02:00
Vladimir
db1ff43807
fix: ignore "plugins" field in snapshotFormat option (#4204) 2023-10-01 14:46:37 +02:00
Ari Perkkiö
8b4a44ad16
feat!: support multiple parallel child_process (#3925) 2023-09-27 09:39:26 +02:00
Han
b50cf7ad9c
feat(config): add diff option (#4063)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-09-18 17:47:19 +02:00
Marcelo Botega Fontana
a7e09939e4
feat(coverage): add coverage['100'] to istanbul provider (#4109) 2023-09-13 15:28:45 +02:00
Marcelo Botega Fontana
ba1e7335f9
fix(docs): fix lint errors on onConsoleLog example (#4116) 2023-09-12 11:25:53 +02:00
Marcelo Botega Fontana
19922d9b6e
docs: add onConsoleLog (#4115) 2023-09-12 10:36:37 +02:00
Lo
c48fef540a
docs: fix typo (#4066) 2023-09-04 10:33:52 +02:00
Vincent François
7dac05943b
docs: add example for merging vite config defined as a function (#3978) 2023-08-24 14:24:55 +02:00
Stefan Vojvodic
c03faa2204
feat(coverage): add allowExternal option (#3894)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2023-08-21 18:34:40 +02:00
Felix
20263d9d26
fix: add workspace config files to default coverage excludes (#3973)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2023-08-21 18:29:19 +02:00
Vladimir
74dc5967a6
fix(vitest): correctly resolve optimizer status (#3992) 2023-08-21 18:28:40 +02:00
Vladimir
f4e6e99fa3
feat: allow importing CSS and assets inside external dependencies (#3880) 2023-08-03 17:43:50 +02:00
Vladimir
4b946ca91e
feat: add preact example, remove optimizer experimental status, enable by default (#3854)
Co-authored-by: eryue0220 <eryue0220@gmail.com>
2023-08-01 11:53:31 +02:00
Vladimir
b09298528b
feat!: support running tests using VM context (#3203)
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-08-01 08:59:55 +02:00
Han
dc4faf64ee
feat: introduce server option (#3725)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-07-31 12:10:25 +02:00
Ari Perkkiö
3c851872f8
fix(coverage): exclude vite virtual modules by default (#3794) 2023-07-28 12:29:46 +02:00
InfiniteXyy
e8bc46b6e4
feat: support config junit reporter className with env (#3808) 2023-07-28 12:03:23 +02:00
Daniel Tschinder
b524c652cc
docs: clarify external option (#3769) 2023-07-28 10:54:25 +02:00
Ari Perkkiö
a90d64fee3
feat!: remove @vitest/coverage-c8 package (#3614) 2023-07-11 11:46:41 +02:00
Vladimir Sheremet
0b893ae8f4 docs: fix testTransformMode version 2023-07-11 10:58:03 +02:00
Ari Perkkiö
0c6f624f8c
feat!: disable coverage.reportOnFailure by default (#3615) 2023-07-11 10:57:11 +02:00
Vladimir
9608bf72d8
feat!: transformMode affects only test files, not regular files (#3491) 2023-07-11 10:56:13 +02:00
Ray
6fb75dc787 docs: update 2023-07-06 16:00:16 +02:00
Ray
0a2739fc51 docs: revert typecheck part 2023-07-06 16:00:16 +02:00
Ray
6234279cdf docs: update 2023-07-06 16:00:16 +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
Han
f427f00477
feat: add concurrent option to sequence config (#3604)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-06-19 08:20:00 +00:00
Ari Perkkiö
821126f165
feat!: add @vitest/coverage-v8 package (#3339) 2023-06-06 19:00:15 +02:00
Nick McCurdy
19ecc6c746
fix!: improve globs (#3392) 2023-06-06 19:00:05 +02:00