We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 076cd7b + 2dae01e commit a97ec67Copy full SHA for a97ec67
packages/theme-provider/test/index.tsx
@@ -102,7 +102,7 @@ test('renders with custom components', () => {
102
</ThemeProvider>
103
)
104
expect(json).toHaveStyleRule('color', 'tomato')
105
- expect(json.type).toBe('pre')
+ expect(json!.type).toBe('pre')
106
})
107
108
test('renders global styles', () => {
@@ -197,7 +197,7 @@ test('adds box-sizing: border-box', () => {
197
198
199
test('does not add box-sizing: border-box', () => {
200
- const styles = [].slice.call(document.querySelectorAll('style'))
+ const styles: HTMLStyleElement[] = [].slice.call(document.querySelectorAll('style'))
201
styles.forEach(style => (style.innerHTML = ''))
202
const root = render(
203
<ThemeProvider
0 commit comments