mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-04-21 17:47:22 +00:00
chore: downgrade chokidar library due to unexpected errors on macOS
related to https://github.com/podman-desktop/podman-desktop/issues/9406 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
parent
6ddba2dd07
commit
8e6073c75c
3 changed files with 20 additions and 3 deletions
|
|
@ -182,7 +182,7 @@
|
|||
"@types/winreg": "^1.2.36",
|
||||
"adm-zip": "^0.5.16",
|
||||
"check-disk-space": "^3.4.0",
|
||||
"chokidar": "^4.0.1",
|
||||
"chokidar": "^3.6.0",
|
||||
"compare-versions": "^6.1.1",
|
||||
"date.js": "^0.3.3",
|
||||
"dockerode": "^4.0.2",
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ import { promises } from 'node:fs';
|
|||
import os from 'node:os';
|
||||
import path, { join } from 'node:path';
|
||||
|
||||
import { watch } from 'chokidar';
|
||||
import { afterEach, beforeEach, expect, test, vi } from 'vitest';
|
||||
|
||||
import { isWindows } from '/@/util.js';
|
||||
|
|
@ -189,3 +190,19 @@ test('watch a file in a directory being a symlink to another directory', async (
|
|||
expect(createListener).toHaveBeenCalledWith(Uri.file(realfile));
|
||||
});
|
||||
});
|
||||
|
||||
// related to https://github.com/paulmillr/chokidar/issues/1391
|
||||
// and https://github.com/paulmillr/chokidar/issues/1391
|
||||
test.runIf(os.platform() === 'darwin')('Watch a directory with a lot of files', async () => {
|
||||
const watcher = watch('/var/run', {
|
||||
persistent: true,
|
||||
ignorePermissionErrors: true,
|
||||
});
|
||||
|
||||
let counter = 0;
|
||||
watcher.on('all', () => {
|
||||
counter++;
|
||||
});
|
||||
|
||||
await vi.waitFor(() => expect(counter).toBeGreaterThan(3));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@ importers:
|
|||
specifier: ^3.4.0
|
||||
version: 3.4.0
|
||||
chokidar:
|
||||
specifier: ^4.0.1
|
||||
version: 4.0.1
|
||||
specifier: ^3.6.0
|
||||
version: 3.6.0
|
||||
compare-versions:
|
||||
specifier: ^6.1.1
|
||||
version: 6.1.1
|
||||
|
|
|
|||
Loading…
Reference in a new issue