New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executing a test using render
fails when vitest re-executes
#18
Comments
When I use I think it is related to this PR: vitest-dev/vitest#1754 Because setting Here is a demo: https://stackblitz.com/edit/solidjs-templates-6usthc?file=vite.config.ts |
Thank you with that option The remaining question is, is it normal that no |
Regarding the issue that the DOM is empty. When I rerun the tests I get this warning from solidjs: Unrecognized value. Skipped inserting HTMLButtonElement { '$$click': [Function (anonymous)] }
Unrecognized value. Skipped inserting HTMLButtonElement { '$$click': [Function (anonymous)] }
Unrecognized value. Skipped inserting HTMLElement {} Which comes from |
This is an error in vitest. The newest version of vitest, if configured correctly, should work. Our testing documentation will be updated soon. |
When running
npm test
with vitest, you don't get the command line back, you may type the Enter key and the test re-executes, or it will re-execute automatically on file changes.My tests succeed on the first run, but when I press Enter to re-execute, the test fails.
To reproduce:
/web/dist/dev.js
line 476, as we usehappy-dom
npm test
(tests succeed)The text was updated successfully, but these errors were encountered: