next.js/test/e2e/babel/index.test.ts
index.test.ts17 lines411 B
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')
  })
})
Quest for Codev2.0.0
/
SIGN IN