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: add missing types in TS project when global is true #2631

Merged
merged 1 commit into from Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/react-mui/tsconfig.json
Expand Up @@ -15,6 +15,7 @@
"strict": true,
"target": "ESNext",
"useDefineForClassFields": true,
"useUnknownInCatchVariables": false
"useUnknownInCatchVariables": false,
"types": ["vitest/globals"]
}
}
3 changes: 2 additions & 1 deletion examples/react-storybook/tsconfig.json
Expand Up @@ -14,7 +14,8 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
"jsx": "react-jsx",
"types": ["vitest/globals"]
},
"include": ["./src", "./.storybook"]
}
1 change: 0 additions & 1 deletion examples/react-testing-lib-msw/src/App.test.tsx
@@ -1,4 +1,3 @@
import { expect, it } from 'vitest'
import { ApolloProvider } from '@apollo/client'
import { client } from './ApolloClient'
import { render, screen, userEvent, waitForElementToBeRemoved } from './utils/test-utils'
Expand Down
3 changes: 2 additions & 1 deletion examples/react-testing-lib-msw/tsconfig.json
Expand Up @@ -14,7 +14,8 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
"jsx": "react-jsx",
"types": ["vitest/globals"]
},
"include": ["./src"]
}
3 changes: 2 additions & 1 deletion examples/react-testing-lib/tsconfig.json
Expand Up @@ -14,7 +14,8 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
"jsx": "react-jsx",
"types": ["vitest/globals"]
},
"include": ["./src"]
}