yoho
b8f34eb8ca
feat: add html reporter based on Vitest UI ( #2444 )
...
* feat: vitest html report
* chore: copy ui to vitest dist
* feat: report copy ui dist
* feat: ui report version builder
* fix: copy file
* chore: remove
* feat: html metadata path
* feat: add declare
* feat: static file client
* feat: mock rpc
* fix: mock error
* chore: update meta
* chore: compress json
* chore: comment
* chore: update merge config
* chore: lock
* feat: remove all control command from ui
* chore: remove
* feat: report command
* feat: version tag
* chore: reset lock file
* feat: remove hooks
* chore: update
* fix: runningPromise
* chore: update debug mode and disable click on transform
* docs: report
* chore: remove the version mark
* feat: report
* fix: lint
* chore: copy ui from @vitest/ui
* chore: export report from ui
* chore: update
* fix: lint
* docs: ui html report
* feat: ensurePackageInstalled
* update
* feat: more info
* chore: improve documentation and tests
* chore: fix UI bundle size
* chore: ui tests
* perf: remove output report using the global variable to judge report mode
* chore: update
* fix: build
* fix: report
* fix: parse
* chore: fix html reporters test
* chore: don't store config in html reporter test
* chore: update ui docs
* feat: log
* chore: fix tests
* test: fix html reporter tests
* docs add vitest fo UI reporter
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2022-12-19 13:23:22 +03:00
Vladimir Sheremet
881bd7a3d6
chore: add version to "stubEnv" and "unstubAll"
2022-12-16 17:59:44 +01:00
Vladimir
b114d49f50
feat: introduce a native way to set env and globals ( #2515 )
...
* feat: introduce a native way to set env and globals
* chore: cleanup
* chore: cleanup
* chore: cleanup
* docs: cleanup
2022-12-16 16:19:17 +01:00
yoho
799f9a1788
feat: add mts, cts files to coverage ( #2492 )
...
* feat: mts coverage
* test: fix
* fix: snapslot
* docs: coverage
* fix: snapslot
* chore: update
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
* chore: reset
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2022-12-13 09:14:26 +01:00
Samuel Plumppu
b5eb7a9dae
docs: fix broken link ( #2469 )
2022-12-10 20:20:23 +01:00
Vladimir
d050604f19
fix: add test attributes to "testsuites" in junit reporter ( #2362 )
...
* fix: add test attributes to "testcases" in junit reporter
* docs: add information about VITEST_JUNIT_SUITE_NAME
2022-12-05 15:45:02 +01:00
Ari Perkkiö
e11986d6b2
docs(coverage): watermarks link correction ( #2418 )
2022-12-03 13:57:47 +01:00
Ari Perkkiö
2c52c52091
docs(coverage): overall improvements ( #2412 )
...
* chore: ignore formatter on markdown files
* docs(coverage): ignoring code section
* docs(coverage): document each coverage option clearly
2022-12-03 10:31:26 +01:00
yoho
98974ba4a5
feat: slow test threshold ( #2396 )
...
* feat: slowTestThreshold
* feat: docs
* test: slowTestThreshold
* docs: seconds->milliseconds
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
Co-authored-by: Vladimir <sheremet.va@icloud.com>
2022-12-02 13:09:34 +00:00
Vladimir Sheremet
2499828559
docs: clarify css processing
2022-11-18 12:56:26 +01:00
Vladimir
c386bce168
feat: allow hooks to be executed in a stack or list ( #2294 )
...
* feat: allow hooks to be executed in a stack or list
* chore: update test
2022-11-08 16:15:16 +01:00
Vladimir
7c7f33d5fc
feat: add typechecking functionality ( #2107 )
...
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-11-07 23:49:15 +08:00
Abdellah Alaoui Solaimani
576d791310
fix: improve config's default exclude ( #2188 )
...
* ignore configuration files by default
* add config exclude to the docs
* Update packages/vitest/src/defaults.ts
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
* add config to default coverage excludes
* add coverage exclude to docs
* exclude other config files and update docs
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
Co-authored-by: Vladimir <sheremet.va@icloud.com>
2022-10-27 08:56:25 +02:00
Jeff Astor
802c67b639
docs: small typo correction ( #2168 )
2022-10-18 17:09:34 +02:00
Ari Perkkiö
f3524602cc
docs: description for coverage include option ( #2063 )
2022-09-24 11:15:03 +02:00
Mohammad Bagher Abiat
93a0f4277d
docs: benchmarking and tinybench ( #2059 )
2022-09-20 11:12:20 +08:00
Gleyson Abreu
a31767dda5
docs: fix wrong url in environmentOptions ( #2049 )
2022-09-18 10:57:04 +08:00
Vladimir
95da4d6693
fix: move outputFile to benchmark, allow --reporter for benchmark ( #2037 )
2022-09-14 18:30:55 +03:00
Vladimir
f00a1ac228
docs: add information about benchmarking ( #2001 )
2022-09-10 15:54:55 +08:00
yoho
43ba8723a6
feat: benchmark ( #1029 )
...
* feat: benchmark
* feat: console result
* chore: lockfile
* chore: rebase
* chore: lock.yaml
* chore: pnpm lock yaml
* chore: update
* feat: collect benchmark
* chore: benchmark use suite collect bench
* chore: run
* chore: lock.yaml?
* feat: render
* chore: revert lock.yml
* chore: update
* feat: options.reports
* chore: update
* chore: async
* chore: defer
* chore: add options
* feat: warn
* chore: update
* feat: sort render
* chore: update
* chore: pnpm lock
* fix: import
* fix: types
* fix: types
* chore: build location
* fix: lint
* fix: lint
* feat: tinybench@2.1.3
* chore: update lock
* chore: reduce benchmark test time
* fix: render
* chore: rename
* feat: dynamic import tinybench
* chore: update
* chore: update sort rules
* feat: bench test
* chore: update test
* chore: update
* feat!: run mode
* feat: throw error on wrong mode
* chore: lint
* chore: cleanup
* chore: update output
* chore: remove options.benchmark is not used in viteConfig.test when command is not benchmark
* chore: update ops/sec
* feat: json reporter
* chore: ignore sample output on terminal
* chore: update
* chore: update
* fix: actually run tests
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2022-09-04 14:55:44 +03:00
Vladimir
f32383a3ef
feat!: if not processed, CSS Modules return a proxy, scope class names by filename ( #1803 )
2022-09-04 10:53:09 +03:00
Ari Perkkiö
5bfd3c9a40
feat(coverage-istanbul): add "all" option ( #1880 )
2022-09-04 10:41:54 +03:00
Vladimir
e393be3414
feat: allow custom environments ( #1963 )
...
* feat: allow custom environments
* chore: linting
* chore: cleanup
Co-authored-by: Ivan Demchuk <ivan.demchuk@gmail.com>
* chore: cleanup
Co-authored-by: Ivan Demchuk <ivan.demchuk@gmail.com>
* chore: cleanup
* docs: cleanup
* docs: cleanup
* Update docs/guide/environment.md
Co-authored-by: Ivan Demchuk <ivan.demchuk@gmail.com>
Co-authored-by: Ivan Demchuk <ivan.demchuk@gmail.com>
2022-09-04 09:37:11 +03:00
Ctibor Laky
4635c665d4
docs: guide of extending vite config ( #1874 )
...
Co-authored-by: Ctibor Laky <laky@efabrica.sk>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-08-23 16:16:09 +08:00
Ari Perkkiö
265fdbe665
feat: support istanbul coverage provider ( #1676 )
...
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-08-16 02:21:02 +08:00
Vladimir
155943c5b6
feat: treat pseudo ESM as ESM with custom loader, disable custom Node Loader by default ( #1778 )
...
* feat: treat pseudo ESM as ESM
* chore: remove empty main fields
* chore: cleanup
* chore: disable node loader by default
* chore: cleanup
* chore: register loader for esm test
* chore: don't disable loader for now
* chore: revert
* chore: cleanup
* chore disable node loader by default
* chore: disable Node Loader tests
2022-08-05 18:43:42 +03:00
Vladimir
40e4dba6a8
feat: add deps.registerNodeLoader option ( #1751 )
2022-07-31 14:05:57 +03:00
Jan Müller
409aa45e57
feat: add option for ignoring unhandled errors ( #1678 )
2022-07-26 08:58:43 +03:00
Krishnan Chandra
003c87f018
feat: make close timeout configurable ( #1697 )
...
* Update pnpm lock file
* Add teardownTimeout setting
* Add documentation to index.md
* Restore pnpm-lock to original version
2022-07-22 20:38:50 +03:00
Vladimir
7c2138f2b0
feat: add alias option ( #1634 )
...
* chore: fix typeof check in error
* feat: add alias option
* Update test/core/vitest.config.ts
2022-07-19 17:44:21 +03:00
josef
f7aacb20a4
docs: typo ( #1608 )
2022-07-07 02:57:19 +08:00
Vladimir
5d0dfe9c6d
feat: make sequencer public, add option to run tests in random order ( #1582 )
...
* feat: make sequencer public, add random option
* test: cleanup
* chore: add random option to suite
* chore: cleanup
* chore: cleanup
* chore: cleanup
* chore: cleanup
* chore: cleanup
* chore: rename random -> shuffle
* Apply suggestions from code review
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
* Update docs/config/index.md
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-07-06 10:08:22 +00:00
Paul Eboselume
a664851e31
docs: fix typos ( #1601 )
2022-07-05 20:01:25 +03:00
Elliot Westlake
40fc526e55
feat: check related against forceRerunTriggers ( #1595 )
...
* feat: check related against forceRerunTriggers
* chore: fix lock
* check length of micromatch
* add execa
* add force-rerun tests and vitest config
* update docs
* watch false on related
* typo
* linting
* fix lock and add timeout to tests
* add defaults to forceRerunTriggers
* chore: remove dist from forceRerunTriggers
* Wording
Co-authored-by: Vladimir Sheremet <sheremet.va@icloud.com>
2022-07-05 08:04:09 +00:00
Vladimir
05410f83e7
docs: add link to VIte options ( #1589 )
2022-07-04 13:17:11 +08:00
Vladimir
9c60757280
feat: add caching to run failed and longer tests first ( #1541 )
...
* feat: add caching to run failed and longer tests first
* chore: cleanup
* chore: add clearCache
* chore: update lockfile
* chore: add filesCache
* refactor: add sequelizer
* chore: lockfile
* refactor: renaming
* chore: dont override version
* chore: fix clearCache
* chore: guard slice
* chore: cleanup
* docs: cleanup
* chore: cleanup
* chore: remove command for now
* refactor: cleanup
2022-07-03 15:18:39 +03:00
Yixuan Xu
b947be48c3
feat: support edge runtime ( #1574 )
...
* feat: add edge-runtime environment
https://github.com/vercel/edge-runtime
* chore: apply code review
* chore: ci
* chore: ci
* chore: add @edge-runtime/vm to peerDependencies
* chore: lint
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Co-authored-by: Vladimir Sheremet <sheremet.va@icloud.com>
2022-07-02 09:51:26 +00:00
Anthony Fu
27a523bd59
docs: update layouting
2022-06-17 16:03:21 +08:00
Vladimir
68715b6e46
feat: add css config option, don't process CSS by default ( #1467 )
...
* feat: add processCss config option, don't process CSS by default
* refactor: css option is aligned with other simmilar options
* refactor: change is css regexp
* refactor: cleanup
* Update docs/config/index.md
Co-authored-by: Bartosz Gościński <bargosc@gmail.com>
* refactor: reverse filters in css
Co-authored-by: Bartosz Gościński <bargosc@gmail.com>
2022-06-14 18:45:34 +00:00
Vladimir
348a008857
feat: add maxConcurrency option ( #1483 )
2022-06-14 20:57:56 +03:00
Vladimir
0b639b1333
feat: introduce VITEST_POOL_ID ( #1473 )
...
* feat: introduce VITEST_POOL_ID
* fix: always increment worker id, pool id is always 1 in `--no-threads`
2022-06-13 18:39:29 +03:00
Dragomir Ivanov
0b8a5bc0d6
feat: new --ouputDiffLines cli flag ( #1446 )
...
* docs: add documentation for `--outputTruncateLength` cli flag
* feat: add `--outputDiffLines` cli flag
Use this flag in order to control how many lines are printed,
on each diff.
2022-06-08 18:41:01 +03:00
Vladimir Sheremet
24af3fe77d
docs: small fixes
2022-06-06 09:47:39 +03:00
Vladimir
fd57b0e507
feat(vite-node): respect ssr field, allow inlining everything ( #1434 )
2022-06-05 23:07:14 +08:00
Vladimir
3f5ff5b5b6
feat: improve watcher performance, add forceRerunTriggers option ( #1424 )
2022-06-05 22:53:14 +08:00
Vasilii Kovalev
31817087d2
docs: fix testNamePattern description ( #1425 )
2022-06-04 23:39:25 +08:00
Anthony Fu
6e6d63c537
docs: new theme ( #1416 )
2022-06-03 19:01:25 +08:00
Zixuan Chen
0ec0fc4185
docs: api default port should be 51204 ( #1307 )
2022-05-17 09:39:49 +08:00
Jeff
fbd47d0c3d
docs: fix some typos ( #1299 )
2022-05-12 18:04:59 +02:00
Vladimir
62cf5af67d
docs: add more info to config docs ( #1269 )
...
* docs: add more info to config docs
* docs: fix dead link
* Apply suggestions from code review
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-05-08 18:46:12 +08:00