0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/integrations/vercel/test/streaming.test.js

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

23 lines
611 B
JavaScript
Raw Normal View History

import assert from 'node:assert/strict';
import { before, describe, it } from 'node:test';
2023-11-07 09:01:04 -05:00
import { loadFixture } from './test-utils.js';
describe('streaming', () => {
2023-11-07 09:01:04 -05:00
/** @type {import('./test-utils.js').Fixture} */
let fixture;
before(async () => {
fixture = await loadFixture({
root: './fixtures/streaming/',
});
await fixture.build();
});
it('makes it to vercel function configuration', async () => {
const vcConfig = JSON.parse(
await fixture.readFile('../.vercel/output/functions/_render.func/.vc-config.json')
2023-11-07 09:01:04 -05:00
);
assert.equal(vcConfig.supportsResponseStreaming, true);
2023-11-07 09:01:04 -05:00
});
});