IKoshelev
72cb4db1a3
docs: added hint to debug via JavaScript Debug Terminal ( #2653 )
...
Added description and screenshot how to debug Vitest tests with JavaScript Debug Terminal
2023-02-03 10:36:13 +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
Mohammad Kermani
8c625d2a10
docs(cli): suggest --run flag when using vitest related with lint-staged ( #2704 )
...
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-01-23 16:50:51 +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
mysteryven
8560758e83
docs: change link style and correct TypeScript ( #2709 )
2023-01-19 09:47:07 +01:00
Vladimir
8b50123014
docs: split API into separate pages ( #2635 )
...
* docs: split API into separate pages
* Apply suggestions from code review
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2023-01-16 15:54:03 +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
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
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
Anthony Fu
0967b24bc4
docs: links to video course
2022-12-15 02:10:10 +01:00
Ilya Golovin
0a78859a2b
docs: add articles, fix typo ( #2471 )
2022-12-09 08:52:21 +01:00
yoho
2657ce562a
docs: clarify installing globally ( #2397 )
...
* docs: install global
* chore: update
Co-authored-by: The Jared Wilcurt <TheJaredWilcurt@users.noreply.github.com>
* docs: npx help
* docs: update
* fix: error
Co-authored-by: The Jared Wilcurt <TheJaredWilcurt@users.noreply.github.com>
2022-12-05 15:29:40 +01:00
The Jared Wilcurt
6d75630fcc
docs: setting for coverage reports directory ( #2400 )
...
* Document setting the coverage reports directory
This took a lot of trial and error to get to work, so it should be documented to save other people the 2 hours of research it took me to get it working.
* Apply suggestions from code review
* Apply suggestions from code review
* Update docs/guide/coverage.md
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
* Update docs/guide/coverage.md
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-12-04 19:38:16 +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
The Jared Wilcurt
a6a94ccc6d
docs: Make Vue snapshot migration clear ( #2379 )
2022-11-30 07:42:34 +08:00
Vladimir Sheremet
6b977f2dcf
docs: update .each information
2022-11-22 13:51:01 +01:00
remcovaes
39ff27dcf0
docs: update Web Test Runner comparison ( #2349 )
...
Update the comparison to Web Test Runner comparison to a new and maintained package. This will give a more honest comparison and allows developers to make more informed decision in which test framework fits them best. Also note that in the new plugin, features such as changing the viewport do work.
2022-11-21 16:50:25 +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
Anjorin Damilare
17ba76b8d1
docs: update cli docs ( #2159 )
2022-10-19 12:29:32 +02:00
Vladimir Sheremet
ce5eeec78f
docs: update minimum Vite version
2022-10-19 11:07:05 +02:00
Localhousee
8b84e1f056
docs: resolve.alias link from docs ( #2160 )
2022-10-17 06:28:56 +08:00
Ahmet Katrancı
6ca180233b
chore: typo ( #2147 )
2022-10-14 05:19:17 +08:00
Joshua Nussbaum
dd7c80bee8
docs: add instructions for debugging tests via terminal ( #2085 )
...
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-10-07 10:03:01 +02:00
JoeyHuang0235
5b8d6dbe75
docs: use type: node in launch configuration to debug ( #2081 )
2022-09-25 13:38:13 +02:00
Mohammad Bagher Abiat
93a0f4277d
docs: benchmarking and tinybench ( #2059 )
2022-09-20 11:12:20 +08:00
Vladimir
f00a1ac228
docs: add information about benchmarking ( #2001 )
2022-09-10 15:54:55 +08:00
Jon Musselwhite
8cd7def43e
docs: correct jsdom typo ( #2011 )
...
I tested `jsdon` to confirm it does not work. When I tried it, I was prompted to install undefined. It does work when the value is `jsdom` so I made that change here.
Perhaps there should be some error handling for when an unknown environment is specified rather than letting it attempt to install undefined?
2022-09-09 10:48:57 +03:00
Orleydo Vargas
90ffa6dc0f
docs: add different package managers installations ( #1980 )
...
* docs: Split 'Adding Vitest to your Project' options
make it easier to copy bash commands for each package manager
* docs: Split 'Adding Vitest to your Project' options
Make it easier to copy bash commands for each package manager
2022-09-08 11:34:25 +03:00
Simon McEnlly
f55fa26063
docs: add Wallaby.js to IDE Integration page ( #1977 )
...
Co-authored-by: Ivan Demchuk <ivan.demchuk@gmail.com>
2022-09-05 11:13:25 +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
Filip Tammergård
5c06494412
docs: update timer mocking section ( #1953 )
2022-09-02 13:53:11 +08:00
Jan Macku
11ed412f42
doc: fix option for updating snapshots ( #1936 )
2022-08-30 19:53:53 +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
jereklas
ec37655115
feat: Add --no-color to cli ( #1849 )
2022-08-15 10:56:09 +08:00
jereklas
8eddd5a380
fix: handle undefined returns of module mocks, and update migration docs ( #1763 ) ( #1830 )
...
* handle undefined returns of module mocks, and update migration docs
* correct docs
2022-08-11 09:18:43 +03:00
Tanimodori
39b19cf0e6
docs: clarify how to use local test context ( #1829 )
...
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-08-10 16:57:45 +08:00
Vladimir Sheremet
0ae8e19b90
docs: clarify vitest related
2022-08-07 17:22:33 +03:00
Jan Müller
409aa45e57
feat: add option for ignoring unhandled errors ( #1678 )
2022-07-26 08:58:43 +03:00
Takumi Kamihara
eeaf734c7d
docs: fix the example for in-source testing unbuild confing ( #1698 )
2022-07-24 09:48:03 +03:00
Hamir Mahal
afa4965f07
docs: update snapshot information ( #1702 )
2022-07-24 09:47:50 +03:00
Joe Zimmerman
3ecc91ef98
docs: a few spelling/grammar fixes ( #1701 )
...
* Fix typos and enhance grammar.
* Merge branch 'main'
* Apply suggestions from code review
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
Co-authored-by: Anjorin Damilare <damilareanjorin1@gmail.com>
2022-07-24 09:47:29 +03:00
Joe Zimmerman
7306994394
docs: typos ( #1686 )
2022-07-22 14:27:36 +08:00
Anthony Fu
88033bca99
feat: init @vitest/browser package ( #1302 )
...
Co-authored-by: Joaquín Sánchez Jiménez <joaquin.sanchez@fi2net.es>
Co-authored-by: userquin <userquin@gmail.com>
Co-authored-by: M. Bagher Abiat <zorofight94@gmail.com>
2022-07-20 03:37:45 +08:00
Joaquín Sánchez
235cfa7eea
docs: add section title in guide pages ( #1583 )
2022-07-15 00:28:28 +08:00
Vladimir
5b837f9472
docs: improve wording in mocking cheat sheet ( #1617 )
...
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-07-09 15:22:21 +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
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
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
Vladimir
adf82b3f68
docs: add mocking cheat sheet ( #1536 )
...
* docs: add mocking cheat sheet
* docs: fix modules mocking example
2022-06-24 13:28:56 +00:00