9855db676e
* Cloudflare prerender branch * Add prerendered routes to Cloudflare routes.json * Adding changeset * Prevent process proxy from running during prerender phase
19 lines
499 B
JavaScript
19 lines
499 B
JavaScript
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/');
|
|
});
|
|
});
|