16 Commits

Author SHA1 Message Date
Clark Fischer
6b73473fa4
feat(vitest): filter stacktraces (fix #1999) (#4338) 2023-10-23 17:04:34 +02:00
Ari Perkkiö
114a993c00
feat!: add support for pool and poolOptions, remove old flags (#4172) 2023-10-02 14:13:40 +02:00
Vladimir
a3dc47b038
feat!(snapshot): make snapshots more visually pleasing (#3961) 2023-09-27 10:27:32 +02:00
Nick McCurdy
19ecc6c746
fix!: improve globs (#3392) 2023-06-06 19:00:05 +02:00
Ari Perkkiö
9fbb8d31b6
test: reduce usage of execa, add runVitest test utils (#3436) 2023-05-24 09:15:52 +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
CattChen
5cee4fbf12
fix: stack trace point to incorrect file (#3004) (#3115)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2023-04-05 17:38:01 +02:00
Vladimir
29c49528c6
refactor: move module mocking transforms out of plugins (#2993) 2023-03-20 11:17:24 +01:00
Vladimir
3573032875
fix: show correct line numbers in stack trace when using vi.resetModules() (#3020) 2023-03-17 14:31:34 +01:00
renovate[bot]
d30e38c0ea
chore(deps): update all non-major dependencies (#2487)
* chore(deps): update all non-major dependencies

* chore: cleanup

* chore: cleanup

* chore: don't update source-map

* chore: update license

* chore: fix cause error

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2022-12-13 10:19:19 +01:00
Vladimir
cbf91ba712
fix: always apply vite ssr source maps (#2433)
* fix: always apply vite ssr source maps

* chore: remove non-vite-node source maps from code

* test: source map test

* chore: force esbuild to not generate inline source map

* chore: fix failing text
2022-12-05 18:19:40 +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
cd1d8fd71f
feat: display error frame if present (like Vite) (#2257)
Co-authored-by: Vladimir <sheremet.va@icloud.com>
fixes https://github.com/vitest-dev/vitest/issues/2256
2022-11-07 20:14:22 +08:00
Vladimir
90c1801613
fix: show correct stack trace in errors and console (#2248)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Fixes https://github.com/vitest-dev/vitest/issues/2231
Fixes https://github.com/vitest-dev/vitest/issues/1331
Fixes https://github.com/vitest-dev/vitest/issues/2211
Fixes https://github.com/vitest-dev/vitest/issues/2195
2022-11-07 20:02:20 +08:00
Vladimir
fe7194616f
fix: improve compatibility with native Node CJS resolution (#2226)
* fix: improve compatibility with native Node CJS resolution

* chore: types

* test: increase stacktrace timeout
2022-10-31 10:36:29 +01:00
Abdellah Alaoui Solaimani
d1919a069c
fix: use correct source maps in stacktrace (#2027)
* [vitest] use correct source maps in stacktrace

use vitenode server to get a fetch result instead of a transform result.
And then get the sourcemap from it.

* [vitest] refactor

* add tests for stack traces and sourcemaps

* commit lockfile

* fix linter

* fix types linter

* remove dynamic content from snapshot

* push the correct snapshot

* fix tests :)

* increase timeout for runner tests

* decrease timeout .. not the culprit in CI

* move continue below map assignment

* guard against accessing vitenode server

* reduce the size of snapshots

* rename timeout to prevent running more than one
2022-10-07 10:13:39 +02:00