Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
import { nextTestSetup } from 'e2e-utils'
describe('with-exported-function-config', () => {
const { next, isNextStart } = nextTestSetup({
files: __dirname,
})
it('should have correct values in function config manifest', async () => {
if (isNextStart) {
const functionsConfigManifest = JSON.parse(
await next.readFile('.next/server/functions-config-manifest.json')
)
expect(functionsConfigManifest).toMatchInlineSnapshot(`
{
"functions": {
"/api/page-route": {
"maxDuration": 1,
},
"/app-route": {
"/app-route-edge": {
"maxDuration": 2,
"/app-ssr": {
"maxDuration": 3,
"/app-ssr-edge": {
"maxDuration": 4,
"/page": {
"/page-ssr": {
"version": 1,
}
`)