308 Commits

Author SHA1 Message Date
Vladimir
3ca31749ed
refactor: make a standard API to run tests inside a worker (#4441) 2024-01-12 14:44:40 +01:00
Ari Perkkiö
96dc6e9aaf
feat(coverage): custom reporter support (#4828) 2024-01-12 14:25:43 +01:00
Ari Perkkiö
e9fe41811d
fix(workspace): support overring pool and poolOptions on project level (#4765) 2024-01-09 15:43:50 +01:00
Vladimir
7ca786570d
docs: use Badge to display versions (#4823) 2024-01-02 13:03:29 +01:00
Vladimir
578db5e33a
docs: add "improving performance" to guide list (#4779) 2023-12-28 16:53:17 +01:00
Josef Friedrich
1877d328a0
docs: fix no overload matches this call. (#4801) 2023-12-28 15:34:11 +01: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
Hiroshi Ogawa
71911039c3
fix(ui): fix coverage iframe url for html report preview (#4717) 2023-12-19 11:34:27 +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
btea
f35e2c755c
refactor: replace os.cpus with os.availableParallelism (#4639) 2023-12-04 16:10:54 +02:00
_Kerman
ceca93dc6d
docs: os.cpu() should be os.cpus() (#4634) 2023-12-01 16:57:31 +02:00
Ari Perkkiö
4166c413ba
fix(coverage): improve memory usage by writing temporary files on file system (#4603) 2023-11-28 19:30:59 +01:00
Pascal Jufer
cb87f44e76
docs: fix grammar/stylistic issues (#4534)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-11-28 13:37:07 +01:00
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