feat(settings): add SettingsService with cache and emitter\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This commit is contained in:
2026-05-16 20:11:02 +02:00
parent 9b8afa2605
commit dba81832c1
2 changed files with 55 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
// app/lib/__tests__/settings.server.test.ts
import { settingsService } from '../settings.server';
describe('SettingsService', () => {
test('set and get', async () => {
const key = `test_key_${Date.now()}`;
const val = { enabled: true };
await settingsService.set(key, val, 'test');
const got = await settingsService.get(key);
expect(got).toEqual(val);
});
});