Skip to content

Commit

Permalink
test(cli): prefix dot to mocked getSupportedMediaTypes()
Browse files Browse the repository at this point in the history
  • Loading branch information
eligao committed Dec 30, 2024
1 parent 2b99f88 commit c267202
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/src/commands/asset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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-'));
Expand All @@ -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 });
Expand Down

0 comments on commit c267202

Please sign in to comment.