344 Commits

Author SHA1 Message Date
Vladimir
a9a8ee7e5b
docs: add experimentalOptimizer?.[mode] documentation (#3526) 2023-06-06 18:58:58 +02:00
Vladimir Sheremet
b6c4a6ca3b Revert "feat!: remove transformMode option"
This reverts commit 7983d53752f33ce78447d84f9a4dd78a9bd4d5f5.
2023-06-01 16:46:16 +02:00
Vladimir Sheremet
7983d53752 feat!: remove transformMode option 2023-06-01 16:45:22 +02:00
Vladimir Sheremet
94668725e8 docs: add mention to experimentalOptimizer 2023-06-01 13:22:36 +02:00
Vladimir
5a894aa20e
feat: enable experimentalOptimizer (#3413) 2023-06-01 10:45:49 +02:00
Vladimir
306b233746
fix(vite-node): don't externalize "dist" by default (#3446) 2023-05-30 12:38:26 +02:00
Alessandro Di Dio
b3602bcc4d
feat(dev): add moduleDirectories option to the vitest config (#3337)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-05-30 10:13:10 +02:00
Ari Perkkiö
1988fcb408
feat(coverage): add reportOnFailure option (#3453)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2023-05-29 16:05:15 +02:00
Joaquín Sánchez
e24cd9b2cc
feat(ui): add html coverage (#3071)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-05-03 11:23:44 +02:00
Ari Perkkiö
f1724293f0
docs: specify release version for --bail option (#3288) 2023-05-03 12:21:25 +04:00
Vladimir
0c09a40d2b
feat!: update mock implementation to support ESM runtime, introduce "vi.hoisted" (#3258) 2023-04-27 15:04:05 +02:00
robertgr991
da2f1970b9
docs(config): add "includeSource" option (#3199) 2023-04-27 14:37:14 +02:00
Ari Perkkiö
730af0b450
feat(coverage): watermarks for c8 (#3254) 2023-04-27 12:54:53 +02:00
Ari Perkkiö
8d4606eb01
feat(watch): test run cancelling, feat: --bail option for cancelling test run (#3163) 2023-04-26 21:04:30 +02:00
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