diff --git a/gitnexus/test/unit/group/http-route-extractor.test.ts b/gitnexus/test/unit/group/http-route-extractor.test.ts index a575451b9..c41fb52ca 100644 --- a/gitnexus/test/unit/group/http-route-extractor.test.ts +++ b/gitnexus/test/unit/group/http-route-extractor.test.ts @@ -6,12 +6,12 @@ import { HttpRouteExtractor } from '../../../src/core/group/extractors/http-rout import type { RepoHandle } from '../../../src/core/group/types.js'; describe('HttpRouteExtractor', () => { - const tmpDir = path.join(os.tmpdir(), `gitnexus-http-extract-${Date.now()}`); + let tmpDir: string; let extractor: HttpRouteExtractor; beforeEach(() => { extractor = new HttpRouteExtractor(); - fs.mkdirSync(tmpDir, { recursive: true }); + tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'gitnexus-http-extract-')); }); afterEach(() => {