mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
20 lines
499 B
JavaScript
20 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/');
|
||
|
});
|
||
|
});
|