corerender/test/test.nonci.ts

21 lines
518 B
TypeScript
Raw Normal View History

2025-01-01 07:33:33 +01:00
import { tap, expect } from '@push.rocks/tapbundle';
import * as rendertron from '../ts/index.js';
let testRendertron: rendertron.Rendertron
tap.test('should start rendertron', async (tools) => {
testRendertron = new rendertron.Rendertron();
await testRendertron.start();
});
tap.test('should prerender a page', async () => {
await testRendertron.prerenderManager.getPrerenderResultForUrl('https://lossless.com')
})
tap.test('stop rendertron', async () => {
await testRendertron.stop();
});
tap.start();