refactor: modularize application domains

This commit is contained in:
kkfluous
2026-08-13 12:03:34 +08:00
parent d610e4b841
commit 06fe75b4c7
142 changed files with 14645 additions and 8885 deletions
+12
View File
@@ -0,0 +1,12 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { createApp } from './app.js';
test('creates isolated Hono applications without starting the server process', () => {
const first = createApp();
const second = createApp();
assert.notEqual(first, second);
assert.equal(typeof first.fetch, 'function');
assert.equal(typeof second.fetch, 'function');
});