mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### Why The `process/browser` lib was imported and being transformed, but `process.browser = true` turns to `true = true` that causes the compilation error, we need to exclude them from certain compilation layers ### What - Fixes https://github.com/vercel/next.js/issues/61116 Closes NEXT-2410 Closes NEXT-2328 --------- Co-authored-by: Jiachi Liu <[email protected]>
20 lines
496 B
JavaScript
20 lines
496 B
JavaScript
/* eslint-env jest */
|
|
|
|
import { fetchViaHTTP, findPort, killApp, launchApp } from 'next-test-utils'
|
|
;(process.env.TURBOPACK ? describe.skip : describe)('babel-next-image', () => {
|
|
let appPort
|
|
let app
|
|
|
|
beforeAll(async () => {
|
|
appPort = await findPort()
|
|
app = await launchApp(__dirname, appPort)
|
|
})
|
|
|
|
afterAll(() => killApp(app))
|
|
|
|
it('should work with babel and next/image', async () => {
|
|
const res = await fetchViaHTTP(appPort, '/')
|
|
expect(res.status).toBe(200)
|
|
})
|
|
})
|