next.js / test /e2e /babel /index.test.ts
AbdulElahGwaith's picture
Upload folder using huggingface_hub
b91e262 verified
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')
})
})