feat: add testing using vitest

This commit is contained in:
Space-Banane
2026-03-20 14:56:19 +01:00
parent 1b3851d0af
commit 6ad74bb991
5 changed files with 83 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
import { describe, it, expect, vi } from 'vitest';
import path from 'path';
import os from 'os';
import { getConfigPath } from '../config.js';
describe('config', () => {
it('should return the correct config path', () => {
const expectedPath = path.join(os.homedir(), '.shsf_config');
expect(getConfigPath()).toBe(expectedPath);
});
});