summaryrefslogtreecommitdiff
path: root/packages/integrations/cloudflare/test/prerender.test.js
blob: a3ce50d08c9668bc10443952d96a9f1380949e6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { loadFixture } from './test-utils.js';
import { expect } from 'chai';

describe('Prerendering', () => {
	/** @type {import('./test-utils').Fixture} */
	let fixture;

	before(async () => {
		fixture = await loadFixture({
			root: './fixtures/prerender/',
		});
		await fixture.build();
	});

	it('includes prerendered routes in the routes.json config', async () => {
		const routes = JSON.parse(await fixture.readFile('/_routes.json'));
		expect(routes.exclude).to.include('/one/');
	});
});