mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: mock ensureDirSync
This commit is contained in:
@@ -4,7 +4,7 @@ import { join } from 'path';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { ensureDir } from 'fs-extra';
|
import { ensureDir, ensureDirSync } from 'fs-extra';
|
||||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||||
import { ZodError } from 'zod';
|
import { ZodError } from 'zod';
|
||||||
|
|
||||||
@@ -32,6 +32,7 @@ vi.mock('@app/graphql/generated/api/operations', () => ({
|
|||||||
}));
|
}));
|
||||||
vi.mock('fs-extra', () => ({
|
vi.mock('fs-extra', () => ({
|
||||||
ensureDir: vi.fn(),
|
ensureDir: vi.fn(),
|
||||||
|
ensureDirSync: vi.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('ApiKeyService', () => {
|
describe('ApiKeyService', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user