fix(systemdmanager): migrate systemd file operations to smartfs and tighten TypeScript safety

This commit is contained in:
2026-05-01 15:24:08 +00:00
parent a8b6ecb1a6
commit ddb77fd37d
12 changed files with 2569 additions and 3270 deletions
+4 -1
View File
@@ -12,13 +12,16 @@ tap.test('should create an instance of smartdaemon', async () => {
});
tap.test('should create a service', async () => {
testSmartdaemon.addService({
testSmartdaemon.systemdManager.getServices = async () => [];
testSmartdaemon.systemdManager.saveService = async () => {};
const testService = await testSmartdaemon.addService({
name: 'npmversion',
version: 'x.x.x',
command: 'npm -v',
description: 'displays the npm version',
workingDir: plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
});
expect(testService.name).toEqual('npmversion');
});
export default tap.start();