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: support in-source tests via import.meta.vitest #901

Merged
merged 12 commits into from Mar 7, 2022

Conversation

antfu
Copy link
Member

@antfu antfu commented Mar 6, 2022

@netlify
Copy link

netlify bot commented Mar 6, 2022

✔️ Deploy Preview for vitest-dev ready!

🔨 Explore the source changes: ea54885

🔍 Inspect the deploy log: https://app.netlify.com/sites/vitest-dev/deploys/622602f8cafa4e0007f26e33

😎 Browse the preview: https://deploy-preview-901--vitest-dev.netlify.app

@pd4d10
Copy link
Contributor

pd4d10 commented Mar 7, 2022

How about import.meta.test? It seems to be closer to the semantics

@antfu
Copy link
Member Author

antfu commented Mar 7, 2022

It will expose the APIs of Vitest, which is Vitest specific. Use import.meta.vitest will be more explict and safer, also avoid naming conflict if import.meta.test been picked by the standard.

@antfu antfu merged commit 3eec387 into main Mar 7, 2022
@antfu antfu deleted the feat/import-meta-vitest branch March 7, 2022 14:06
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.

None yet

2 participants