mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Enable `.mjs` resolving in Turbopack to match the current webpack config. Added an additional tests for this.
15 lines
298 B
TypeScript
15 lines
298 B
TypeScript
import { createNextDescribe } from 'e2e-utils'
|
|
|
|
createNextDescribe(
|
|
'mjs as extension',
|
|
{
|
|
files: __dirname,
|
|
},
|
|
({ next }) => {
|
|
it('should render the page correctly', async () => {
|
|
const $ = await next.render$('/')
|
|
expect($('p').text()).toBe('hello world!')
|
|
})
|
|
}
|
|
)
|