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

fix: hoist vitest import #434

Merged
merged 4 commits into from
Jan 4, 2022
Merged

fix: hoist vitest import #434

merged 4 commits into from
Jan 4, 2022

Conversation

sheremet-va
Copy link
Member

Related: #425

@netlify
Copy link

netlify bot commented Jan 4, 2022

✔️ Deploy Preview for vitest-dev ready!

🔨 Explore the source changes: c42bec9

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

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

@sheremet-va sheremet-va requested a review from antfu January 4, 2022 11:08
@antfu
Copy link
Member

antfu commented Jan 4, 2022

Can you add some tests?

@sheremet-va
Copy link
Member Author

Can you add some tests?

Done

@@ -0,0 +1,14 @@
import { expect, test, vi } from 'vitest'
// @ts-ignore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are we ignoring?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timeout doesn't have fn, mock adds it

@sheremet-va sheremet-va requested a review from antfu January 4, 2022 14:06
@antfu antfu merged commit 6fe819a into main Jan 4, 2022
@antfu antfu deleted the sheremet-va/hoist-vitest-import branch January 4, 2022 21:51
JakeGinnivan pushed a commit to JakeGinnivan/vitest that referenced this pull request Jan 8, 2022
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
chaii3 pushed a commit to chaii3/vitest that referenced this pull request May 13, 2022
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