Files
Shu DingandGitHub dc57cde301 Update @vercel/og and satori vendors (#90933)
The new `@vercel/og` and `satori` include many improvements:
- 2~20x faster image generation (`ImageResponse` API) by using Sharp for
rasterization, and optimized Satori core
- Better CSS/SVG coverage:
  - https://github.com/vercel/satori/issues/736
  - https://github.com/vercel/satori/pull/734
  - https://github.com/vercel/satori/pull/733
  - https://github.com/vercel/satori/pull/732
  - https://github.com/vercel/satori/issues/728
  - https://github.com/vercel/satori/issues/724
  - https://github.com/vercel/satori/pull/717
  - https://github.com/vercel/satori/pull/718
  - https://github.com/vercel/satori/pull/719
- Updated layout engine (https://github.com/vercel/satori/pull/689):
  - Support for `box-sizing`
  - Support for `display: contents`
  - Support for `position: static`
  - Support for `align-content: space-evenly`
  - Better support for `position: absolute`
  - Support for percentage values for `gap`
- Noto Sans → Geist Sans
2026-03-05 18:26:21 +00:00

35 lines
985 B
TypeScript

import { nextTestSetup } from 'e2e-utils'
import { retry } from 'next-test-utils'
describe('with babel', () => {
const { next, isNextStart, isTurbopack, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) {
return
}
it('should support babel in app dir', async () => {
const $ = await next.render$('/')
expect($('h1').text()).toBe('hello')
})
if (isNextStart) {
// Turbopack always runs SWC, so this shouldn't be an issue, but this test
// refers to a webpack-specific output path.
// https://github.com/vercel/next.js/pull/51067
;(isTurbopack ? it.skip : it)(
'should contain og package files in middleware',
async () => {
await retry(async () => {
const middleware = await next.readFile('.next/server/middleware.js')
// @vercel/og default font should be bundled
expect(middleware).not.toContain('Geist-Regular.ttf')
})
}
)
}
})