-
Notifications
You must be signed in to change notification settings - Fork 392
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
chore: fix type errors in test files during dev #4458
Conversation
@@ -22,6 +22,8 @@ interface CustomMatchers<R = unknown> { | |||
toBeInRange: (range: { min: number; max: number }, key: string) => R; | |||
} | |||
|
|||
import 'vitest'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually needed for the augmentation to work...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this up to the top of the file. I'm surprised this doesn't fail the linter.
@@ -60,6 +60,7 @@ function sharedPlugins() { | |||
return [ | |||
typescript({ | |||
tsconfig: path.join(packageRoot, 'tsconfig.json'), | |||
exclude: ['**/__tests__/**'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, because we still need typechecking in __tests__
, we just don't want to do anything with it during the Rollup step.
/nucleus test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a nitpick about the location of the import
, but I don't think it's important enough to block this PR. Appreciate the help, thank you!! ❤️
This makes sure vscode picks up vitest/globals.
Details
Does this pull request introduce a breaking change?
Does this pull request introduce an observable change?
GUS work item