BREAKING CHANGE(typedserver): migrate route handlers to use IRequestContext and lazy body parsers

This commit is contained in:
2025-12-20 08:11:04 +00:00
parent d5800f58b4
commit 64f8f400c2
12 changed files with 193 additions and 127 deletions

View File

@@ -7,7 +7,7 @@ let testTypedServer: TypedServer;
tap.test('should create a valid instance of TypedServer', async () => {
testTypedServer = new TypedServer({
injectReload: true,
port: 3000,
port: 3001,
serveDir: smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
watch: true,
cors: true,
@@ -17,15 +17,15 @@ tap.test('should create a valid instance of TypedServer', async () => {
tap.test('should start to serve files', async (tools) => {
await testTypedServer.start();
await tools.delayFor(5000);
await tools.delayFor(1000);
await testTypedServer.reload();
await tools.delayFor(5000);
await tools.delayFor(1000);
await testTypedServer.reload();
});
tap.test('should stop to serve files ', async (tools) => {
await tools.delayFor(5000);
tap.test('should stop to serve files', async (tools) => {
await tools.delayFor(1000);
await testTypedServer.stop();
});
tap.start();
export default tap.start();