Files
Tim NeutkensandGitHub f514684bbc Enable .mjs extension config in Turbopack (#58825)
Enable `.mjs` resolving in Turbopack to match the current webpack config.

Added an additional tests for this.
2023-11-23 14:17:36 +00:00

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!')
})
}
)