astro/packages/integrations/cloudflare/test/prerender.test.js

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

37 lines
703 B
JavaScript
Raw Normal View History

2023-01-23 15:41:45 +00:00
import { loadFixture } from './test-utils.js';
import { expect } from 'chai';
process.on('exit', () => {
console.log('process [exit]');
});
process.on('uncaughtException', err => {
console.log('uncaughtException');
});
process.on('unhandledRejection', rej => {
console.log('unhandledRejection');
});
describe('Prerendering', () => {
/** @type {import('./test-utils').Fixture} */
let fixture;
before(async () => {
fixture = await loadFixture({
root: './fixtures/prerender/',
});
try {
console.log("BEFORE");
await fixture.build();
console.log('done');
} catch(err) {
console.log('after build', err);
}
});
it('works', async () => {
console.log('works');
});
});