Unverified Commit 2a2a4e7c authored by Sebastian Silbermann's avatar Sebastian Silbermann Committed by GitHub

Remove unnecessary mocks (#65284)

Closes NEXT-3285
parent 89ad6121
......@@ -4,10 +4,6 @@ import ReactDOMServer from 'react-dom/server'
import Image from 'next/image'
import cheerio from 'cheerio'
// Since this unit test doesn't check the result of
// ReactDOM.preload(), we can turn it into a noop.
jest.mock('react-dom', () => ({ preload: () => null }))
describe('Image rendering', () => {
it('should render Image on its own', async () => {
const element = React.createElement(Image, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment