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: repair TestFunction return type. #1408

Merged
merged 2 commits into from Jun 5, 2022
Merged

Conversation

Jordan-Hall
Copy link
Contributor

Is they any need to force void. This stops doing inline source testing
image

Currently having to cast the type

Is they any need to force void. This stops doing inline source testing
@netlify
Copy link

netlify bot commented May 31, 2022

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit db23a2a
🔍 Latest deploy log https://app.netlify.com/sites/vitest-dev/deploys/629cc6ed49f2d00008b33674
😎 Deploy Preview https://deploy-preview-1408--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sheremet-va
Copy link
Member

Please, can you fix CI issues?

@antfu antfu enabled auto-merge (squash) June 5, 2022 15:10
@antfu antfu merged commit f169f5a into vitest-dev:main Jun 5, 2022
@@ -50,7 +50,7 @@ export interface Test<ExtraContext = {}> extends TaskBase {
export type Task = Test | Suite | File

export type DoneCallback = (error?: any) => void
export type TestFunction<ExtraContext = {}> = (context: TestContext & ExtraContext) => Awaitable<void>
export type TestFunction<ExtraContext = {}> = (context: TestContext & ExtraContext) => Awaitable<any>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export type TestFunction<ExtraContext = {}> = (context: TestContext & ExtraContext) => Awaitable<any>
export type TestFunction<ExtraContext = {}> = (context: TestContext & ExtraContext) => Awaitable<any> | void

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

3 participants