fix(build): modernize package configuration and remove smartfile dependency from filesystem operations

This commit is contained in:
2026-05-01 16:40:11 +00:00
parent 27fd2efb51
commit 61218599c8
12 changed files with 4044 additions and 5807 deletions
+26
View File
@@ -0,0 +1,26 @@
import { tap } from '@git.zone/tstest/tapbundle';
import * as smartssr from '../ts/index.js';
let testSSRInstance: smartssr.SmartSSR;
tap.test('should create a valid smartssr instance', async () => {
testSSRInstance = new smartssr.SmartSSR({
debug: true,
});
});
tap.test('should render central.eu', async () => {
const renderedPage = await testSSRInstance.renderPage('https://lossless.com');
console.log(renderedPage);
});
tap.test('should render lossless.com', async () => {
await testSSRInstance.renderPage('https://lossless.com');
});
tap.test('should render https://lossless.gmbh', async () => {
const renderedPage = await testSSRInstance.renderPage('https://lossless.gmbh');
console.log(renderedPage);
});
export default tap.start();