Ari Perkkiö
895103ab0c
docs: align heading levels of object-like properties ( #2924 )
2023-02-27 13:59:37 +01:00
Vladimir Sheremet
796adc657d
docs: fix note
2023-02-25 09:35:39 +01:00
Vladimir
7bf54505a1
feat!: use child_process when --no-threads is used ( #2772 )
2023-02-25 09:10:31 +01:00
Ari Perkkiö
e165216356
feat(coverage): automatic threshold updating ( #2886 )
...
Closes #1241
2023-02-25 09:02:36 +01:00
Vladimir
af8de36215
feat: add an option to enable Vite optimizer ( #2912 )
2023-02-25 08:26:34 +01:00
Ari Perkkiö
f8176182da
feat(coverage): add support for coverage reporter options ( #2690 )
2023-02-21 18:02:54 +01:00
Ari Perkkiö
095c63907c
feat!: coverage-c8 to use V8 profiler directly instead of NODE_V8_COVERAGE ( #2786 )
2023-02-14 09:20:17 +01:00
Ari Perkkiö
81604bcee0
fix(coverage): custom providers to work inside worker threads ( #2817 )
2023-02-13 13:28:52 +01:00
Cue
9a0002be7c
docs: fix broken links ( #2739 )
2023-02-11 13:47:57 +01:00
Lioness100
2f87505ffd
docs: fix typos ( #2815 )
2023-02-08 11:30:35 +01:00
Pascal Jufer
07a9faf3d7
docs: small typo regarding new 'basic' reporter ( #2738 )
2023-02-03 10:40:48 +01:00
Vladimir
3679cf25e5
feat: allow using atomics to communicate between threads ( #2758 )
2023-01-27 11:23:26 +01:00
Anthony Fu
a9878c515f
docs: add docs about environmentMatchGlobs ( #2750 )
...
* docs: add docs about `environmentMatchGlobs`
* Update docs/guide/environment.md
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-01-25 16:08:48 +01:00
Vladimir
482b72fc5f
feat!: move test runner into a separate package ( #2721 )
...
Closes https://github.com/vitest-dev/vitest/issues/1470
2023-01-23 10:14:50 +01:00
Vladimir Sheremet
a5ec633a00
docs: update deps.interopDefault section
2023-01-21 17:33:02 +01:00
Trim21
5df522f760
feat: add basic reporter which allow user to use reporter in ci ( #2612 )
...
* add basic reporter
* extend basic reporter
* Update index.md
* Update index.md
* extend from base reporter
* fix lint
* override onReRun
* only ovverride onWatcherRerun
* chore: cleanup
* add override back
* revert
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-01-21 14:18:22 +01:00
Anjorin Damilare
46f744e53e
chore: add tsup and unbuild config to default excludes ( #2670 )
2023-01-19 09:45:04 +01:00
mysteryven
019a6d5791
fix: rerun tests, when setup file is edited ( #2625 )
...
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
fix https://github.com/vitest-dev/vitest/issues/2614
2023-01-16 16:39:14 +00:00
Vladimir Sheremet
13e53ac7b3
fix: increase default teardownTimeout
2023-01-13 16:30:54 +01:00
Vladimir
94968a6f9c
feat: display running processes, if vitest closes with timeout ( #2633 )
...
* feat: display running processes, if vitest closes with timeout
* refactor: move hanging-process to reporter
* chore: cleanup
2023-01-11 17:31:01 +01:00
Vladimir
9b8afb204d
docs: add CLI arguments to config docs ( #2636 )
...
* docs: add CLI argu,ents to config docs
* chore: cleanup
* chore: cleanup
* Update docs/guide/cli.md
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-01-10 16:40:43 +01:00
Gurkiran Singh
bf87282c35
feat(coverage): istanbul coverage only for changed files ( #2385 )
...
* feat: Istanbul Coverage only for changed Files
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
* chore: latest pnpm install changes
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
* chore: removed previous changes related to ctx.changedTests and watchAll config option
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
* chore: cleanOnReRun=true and all=false if watch mode is enabled
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
* chore: deleted example
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
* chore: updated pnpm-lock file after deleting example
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
* chore: change default value for clearOnReRun=true, since watch= true by default
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
* chore: Updated pnpm-lock.yaml file
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
* chore: Update pnpm-lock.yaml
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
* chore: Update pnpm.yaml file as per in main branch
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
Signed-off-by: GurkiranSingh <gurkiransinghk@gmail.com>
2023-01-08 13:52:29 +01:00
Vladimir
a35ac7050b
docs: improve interpretDefault docs ( #2561 )
...
* docs: improve interpretDefault docs
* chore: cleanup
* Apply suggestions from code review
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-12-23 20:43:41 +03:00
Vladimir
7ae1417fff
feat: add more options to configure diff output ( #2522 )
...
* feat: add more options to configure diff output
* chore: add more tests for diff, cleanup
* docs: add `-` examples
* chore: cleanup
* chore: fix test and wrong "could not display diff"
* test: diff ignores undefined
* Apply suggestions from code review
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
* docs: add `--logHeapUsage` to docs
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-12-20 12:57:34 +03:00
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