silverwolf-x/project / test /e2e /babel /index.test.ts
silverwolf-x's picture
download
raw
411 Bytes
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')
})
})

Xet Storage Details

Size:
411 Bytes
·
Xet hash:
b75d823cad0b03c33f47e1f36aef8f53960227bce2bd1397fa25a6170f25fe07

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.