Skip to content

Commit 7abb184

Browse files
committed
Remove unused type
1 parent d32ff73 commit 7abb184

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/gatsby-plugin-image/src/components/__tests__/gatsby-image.browser.tsx

+1-8
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ import { GatsbyImage, IGatsbyImageData } from "../gatsby-image.browser"
33
import { render, waitFor } from "@testing-library/react"
44
import * as hooks from "../hooks"
55

6-
type GlobalOverride = NodeJS.Global &
7-
typeof global.globalThis & {
8-
// eslint-disable-next-line @typescript-eslint/naming-convention
9-
GATSBY___IMAGE: boolean
10-
SERVER: boolean
11-
}
12-
136
// Prevents terser for bailing because we're not in a babel plugin
147
jest.mock(`../../../macros/terser.macro`, () => (strs): string => strs.join(``))
158

@@ -165,7 +158,7 @@ describe(`GatsbyImage browser`, () => {
165158
container.querySelector(`[data-main-image=""]`)
166159
)
167160

168-
img.dispatchEvent(new Event(`load`))
161+
img?.dispatchEvent(new Event(`load`))
169162

170163
expect(onStartLoadSpy).toBeCalledWith({ wasCached: false })
171164
expect(onLoadSpy).toBeCalled()

0 commit comments

Comments
 (0)