2023-11-07 09:01:04 -05:00
|
|
|
import { loadFixture } from './test-utils.js';
|
|
|
|
import { expect } from 'chai';
|
|
|
|
|
2024-01-22 18:34:48 -05:00
|
|
|
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(
|
2024-01-22 18:34:48 -05:00
|
|
|
await fixture.readFile('../.vercel/output/functions/_render.func/.vc-config.json')
|
2023-11-07 09:01:04 -05:00
|
|
|
);
|
|
|
|
expect(vcConfig).to.deep.include({ supportsResponseStreaming: true });
|
|
|
|
});
|
|
|
|
});
|