From c267202d1f7c802b958ffdf84b0a1f28e11dd363 Mon Sep 17 00:00:00 2001 From: Eli Gao Date: Mon, 30 Dec 2024 15:28:03 +0800 Subject: [PATCH] test(cli): prefix dot to mocked getSupportedMediaTypes() --- cli/src/commands/asset.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/src/commands/asset.spec.ts b/cli/src/commands/asset.spec.ts index 86e7f098d52a6..4cd1758a02dd8 100644 --- a/cli/src/commands/asset.spec.ts +++ b/cli/src/commands/asset.spec.ts @@ -201,7 +201,7 @@ describe('checkForDuplicates', () => { }); }); -describe('startWatch', () => { +describe.only('startWatch', () => { it('should start watching a directory and upload new files', async () => { vi.restoreAllMocks(); const testFolder = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'test-startWatch-')); @@ -216,9 +216,9 @@ describe('startWatch', () => { ], }); vi.mocked(getSupportedMediaTypes).mockResolvedValue({ - image: ['jpg'], - sidecar: ['xmp'], - video: ['mp4'], + image: ['.jpg'], + sidecar: ['.xmp'], + video: ['.mp4'], }); try { await startWatch([testFolder], { concurrency: 1 }, { batchSize: 1, debounceTimeMs: 10 });