Skip to content

Commit 4042de8

Browse files
committed
fixed a silly mistake
1 parent 7c55920 commit 4042de8

File tree

10 files changed

+1
-15
lines changed

10 files changed

+1
-15
lines changed

packages/css/test/no-babel/index.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import styled from '@emotion/styled'
77
let consoleError = console.error
88

99
afterEach(() => {
10-
// $FlowFixMe
1110
console.error = consoleError
1211
})
1312

@@ -146,7 +145,6 @@ describe('css', () => {
146145
})
147146

148147
const spy = jest.fn()
149-
// $FlowFixMe
150148
console.error = spy
151149

152150
expect(() =>

packages/css/test/sheet.dom.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { sheet } from '@emotion/css'
33
const consoleError = console.error
44

55
afterEach(() => {
6-
// $FlowFixMe
76
console.error = consoleError
87
})
98

@@ -38,7 +37,6 @@ describe('sheet', () => {
3837
test('throws', () => {
3938
sheet.speedy(true)
4039
const spy = jest.fn()
41-
// $FlowFixMe
4240
console.error = spy
4341
sheet.insert('.asdfasdf4###112121211{')
4442
expect(spy.mock.calls.length).toBe(1)

packages/react/__tests__/element.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
// @flow
21
/** @jsx jsx */
32
import { render } from '@testing-library/react'
43
import { jsx, css, CacheProvider, ThemeProvider } from '@emotion/react'
54
import createCache from '@emotion/cache'
65

7-
// $FlowFixMe
86
console.error = jest.fn()
97

108
beforeEach(() => {
11-
// $FlowFixMe
129
document.head.innerHTML = ''
1310
jest.clearAllMocks()
1411
})
@@ -18,7 +15,6 @@ describe('EmotionElement', () => {
1815
const theme = { color: 'blue' }
1916
const cache = createCache({ key: 'context' })
2017

21-
// $FlowFixMe
2218
const Comp = ({ flag }) => (
2319
<ThemeProvider theme={theme}>
2420
<CacheProvider value={cache}>

packages/react/__tests__/get-label-from-stack-trace.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @flow
21
import { getLabelFromStackTrace } from '../src/get-label-from-stack-trace'
32

43
/**

packages/react/__tests__/global.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
} from '@emotion/react'
1010
import createCache from '@emotion/cache'
1111

12-
// $FlowFixMe
1312
console.error = jest.fn()
1413

1514
beforeEach(() => {

packages/react/__tests__/import-prod.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ expect.addSnapshotSerializer({
2323
const render = children =>
2424
new Promise(resolve => {
2525
const el = document.createElement('div')
26-
// $FlowFixMe
2726
document.body.appendChild(el)
2827

2928
if (ReactDOM.createRoot) {

packages/react/__tests__/theme-provider.dom.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import * as React from 'react'
66
import { jsx, ThemeProvider } from '@emotion/react'
77

88
beforeEach(() => {
9-
// $FlowFixMe
109
document.head.innerHTML = ''
1110
})
1211

packages/react/src/context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ let withEmotionCache = function withEmotionCache<Props, RefType = any>(
3434
ref?: React.ForwardedRef<RefType>
3535
) => React.ReactNode
3636
):
37-
| React.FC<React.PropsWithoutRef<Props> & React.Ref<RefType>>
37+
| React.FC<React.PropsWithoutRef<Props> & React.RefAttributes<RefType>>
3838
| React.ForwardRefExoticComponent<
3939
React.PropsWithoutRef<Props> & React.RefAttributes<RefType>
4040
> {

packages/react/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ if (isDevelopment) {
4444
if (isBrowser && !isTestEnv) {
4545
// globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later
4646
const globalContext: Record<string, unknown> =
47-
// $FlowIgnore
4847
typeof globalThis !== 'undefined'
4948
? globalThis // eslint-disable-line no-undef
5049
: isBrowser

packages/sheet/__tests__/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ describe('StyleSheet', () => {
102102

103103
test('should work with a ShadowRoot container', () => {
104104
const div = document.createElement('div')
105-
// $FlowFixMe
106105
document.body.appendChild(div)
107106
const container = div.attachShadow({ mode: 'open' })
108107
const sheet = new StyleSheet({ ...defaultOptions, container })

0 commit comments

Comments
 (0)