[Bug?]: with-vitest
example broken after upgrading @testing-library/jest-dom
(partial fix included)
#1044
Closed
2 tasks done
Labels
bug
Something isn't working
Duplicates
Latest version
Current behavior 😯
After upgrading
@testing-library/jest-dom
to >=v6
the tests fail with some package lookup error.I fixed the problem here https://github.com/peterhirn/solid-start-with-vitest, starting from the
with-vitest
example.If you think my fixes are good I can squash them and open a PR to patch
examples/with-vitest
(I didn't test the non-Typescript variant yet, not sure if even relevant anymore).I also switched from
@vitest/coverage-c8
to@vitest/coverage-v8
(c8
is deprecated)Aggregated changes: https://github.com/peterhirn/solid-start-with-vitest/compare/6a6cc3c017272381c1305b582d350dae48e7782d..master
Update
I just realized there is still a import problem when using
<Routes>
. After adding this example test from https://github.com/solidjs/solid-testing-librarythe tests fail with
Update 2
I added two more very simple tests for
<Home/>
and<PageNotFound />
. Unfortunately the latter tries to pull@solidjs/router
and fails. I don't know how to proceed here.I'm also very confused by the vitest setting
deps.optimizer.web.include
.include
part I get warnings about "multiple instances of Solid", but tests still passinclude
seems to be irrelevant, eg. this still works without any warningsUpdate 3 (2023-09-23)
Ryan mentioned on his stream yesterday that he's working on rebasing all examples on vinxi. This issue might be obsolete soon.
Context 🔦
No response
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: