Skip to content
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

feat(vitest-environment): add support for in-source testing #651

Merged
merged 6 commits into from
Jan 28, 2024

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Dec 15, 2023

resolves #650

We get this error: vitest-dev/vitest#3393

cc: @sheremet-va in case you have any ideas.

@danielroe danielroe marked this pull request as draft December 15, 2023 16:22
@logotip4ik
Copy link

@danielroe I might be mistaken, but you probably mentioned wrong person. Here is handle for Vitest maintainer (Vladimir): sheremet-va

@sheremet-va
Copy link

In-source tests assume that code is running when the file is imported. So, in the example that I see, I am not sure that the code is actually running since the component needs to be mounted, right?

@danielroe danielroe marked this pull request as ready for review January 26, 2024 13:05
@danielroe
Copy link
Member Author

Thank you !!

We might consider hoisting in-source testing out of the setup function later on.

@danielroe
Copy link
Member Author

danielroe commented Jan 28, 2024

Linking microsoft/TypeScript#45096 - which was the cause of CI failure (see vitejs/vite#14615).

Worked around for the moment.

@danielroe danielroe merged commit b90c61e into main Jan 28, 2024
3 checks passed
@danielroe danielroe deleted the feat/in-source branch January 28, 2024 11:09
This was referenced Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

in-source testing support
3 participants