astro/packages/integrations/cloudflare/test/prerender.test.js
2023-01-23 10:41:45 -05:00

36 lines
703 B
JavaScript

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');
});
});