0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
astro/packages/integrations/vercel/test/max-duration.test.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
554 B
JavaScript
Raw Normal View History

import { loadFixture } from './test-utils.js';
import { expect } from 'chai';
describe('maxDuration', () => {
2023-10-23 05:04:32 -05:00
/** @type {import('./test-utils.js').Fixture} */
let fixture;
2023-10-23 05:04:32 -05:00
before(async () => {
fixture = await loadFixture({
root: './fixtures/max-duration/',
});
await fixture.build();
});
2023-10-23 05:04:32 -05:00
it('makes it to vercel function configuration', async () => {
const vcConfig = JSON.parse(
await fixture.readFile('../.vercel/output/functions/render.func/.vc-config.json')
);
expect(vcConfig).to.deep.include({ maxDuration: 60 });
});
});