This commit is contained in:
2025-01-01 07:33:33 +01:00
commit 396cfe70de
25 changed files with 10518 additions and 0 deletions

20
test/test.nonci.ts Normal file
View File

@@ -0,0 +1,20 @@
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();