Skip to content

Commit

Permalink
fix: add missing types in TS project when global is true (#2631)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneaken committed Jan 10, 2023
1 parent 532cc11 commit 4745eaa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
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"]
}

0 comments on commit 4745eaa

Please sign in to comment.