Skip to content

Commit 4745eaa

Browse files
authoredJan 10, 2023
fix: add missing types in TS project when global is true (#2631)
1 parent 532cc11 commit 4745eaa

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed
 

‎examples/react-mui/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"strict": true,
1616
"target": "ESNext",
1717
"useDefineForClassFields": true,
18-
"useUnknownInCatchVariables": false
18+
"useUnknownInCatchVariables": false,
19+
"types": ["vitest/globals"]
1920
}
2021
}

‎examples/react-storybook/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
1616
"noEmit": true,
17-
"jsx": "react-jsx"
17+
"jsx": "react-jsx",
18+
"types": ["vitest/globals"]
1819
},
1920
"include": ["./src", "./.storybook"]
2021
}

‎examples/react-testing-lib-msw/src/App.test.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { expect, it } from 'vitest'
21
import { ApolloProvider } from '@apollo/client'
32
import { client } from './ApolloClient'
43
import { render, screen, userEvent, waitForElementToBeRemoved } from './utils/test-utils'

‎examples/react-testing-lib-msw/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
1616
"noEmit": true,
17-
"jsx": "react-jsx"
17+
"jsx": "react-jsx",
18+
"types": ["vitest/globals"]
1819
},
1920
"include": ["./src"]
2021
}

‎examples/react-testing-lib/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
1616
"noEmit": true,
17-
"jsx": "react-jsx"
17+
"jsx": "react-jsx",
18+
"types": ["vitest/globals"]
1819
},
1920
"include": ["./src"]
2021
}

0 commit comments

Comments
 (0)
Please sign in to comment.