Remove unnecessary mocks (#65284)

Closes NEXT-3285
This commit is contained in:
Sebastian Silbermann 2024-05-02 20:49:11 +02:00 committed by GitHub
parent 89ad612165
commit 2a2a4e7c05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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, {