silverwolf-x/project / test /unit /next-dynamic.test.tsx
silverwolf-x's picture
download
raw
395 Bytes
/**
* @jest-environment jsdom
*/
import { act, render } from '@testing-library/react'
import '@testing-library/jest-dom'
import dynamic from 'next/dynamic'
describe('next/dynamic', () => {
it('test dynamic with jest', () => {
const App = dynamic(() => import('./fixtures/stub-components/hello'))
act(() => {
const { unmount } = render(<App />)
unmount()
})
})
})

Xet Storage Details

Size:
395 Bytes
·
Xet hash:
2c69edce50622729ccce295c41132d34da5f83040740e02e3aa195ce4bfa4a61

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.