mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-06 02:49:56 +00:00
test(group): create extractor temp dirs safely
This commit is contained in:
parent
522a6b2a2f
commit
feac264216
1 changed files with 2 additions and 2 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue