Anjorin Damilare
b81ffd9017
docs: update workspace docs ( #3157 )
2023-04-12 21:07:47 +02:00
Vladimir
b9d1a97599
feat!: add workspace support ( #3103 )
2023-04-09 15:12:26 +02:00
renovate[bot]
0f86ff9897
chore(deps): update all non-major dependencies ( #2766 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-06 16:53:03 +02:00
btea
6fcba9ba16
feat: add chai config ( #3066 )
2023-04-06 08:17:01 +02:00
Vladimir
313032cdf9
fix: move "mergeConfig" into "vitest/config" and add extension to imports in the documentation ( #3139 )
2023-04-05 18:39:24 +02:00
Vladimir
446308da9d
feat!: use "concordance" package to display diff instead of using custom diff ( #2828 )
2023-03-29 14:16:52 +02:00
Mohammad Bagher Abiat
9dc6929380
feat: playwright as browser provider ( #3079 )
...
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-03-27 11:52:14 +02:00
Vladimir Sheremet
b13138e66e
docs: mark browser as 0.29.4 feature
2023-03-20 14:39:37 +01:00
Mohammad Bagher Abiat
9cdc8030d0
feat: webdriverio (+ custom providers) integration for browser mode ( #2999 )
...
Co-authored-by: Christian Bromann <git@bromann.dev>
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
Co-authored-by: userquin <userquin@gmail.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-03-20 14:37:23 +01:00
Vladimir
c7f0c86bdf
feat: add an option to control Vitest pool with filepath ( #3029 )
2023-03-19 10:02:48 +01:00
Ari Perkkiö
63c62f9e6f
feat: --test-timeout CLI argument ( #3019 )
2023-03-18 21:55:54 +01:00
Vladimir
c2e25bb92f
feat(config): add an option to run setupFiles in sequence ( #3008 )
2023-03-15 20:43:52 +01:00
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