mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
17 lines
411 B
TypeScript
17 lines
411 B
TypeScript
import path from 'node:path'
|
|
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('Babel', () => {
|
|
const { next } = nextTestSetup({
|
|
files: path.join(__dirname, 'fixture'),
|
|
dependencies: {
|
|
'@babel/preset-flow': '7.25.9',
|
|
},
|
|
})
|
|
|
|
it('Should compile a page with flowtype correctly', async () => {
|
|
const $ = await next.render$('/')
|
|
expect($('#text').text()).toBe('Test Babel')
|
|
})
|
|
})
|