All checks were successful
Queue Release Build / prepare (push) Successful in 20s
Deploy Web Apps / deploy (push) Successful in 9m2s
Queue Release Build / build-windows (push) Successful in 28m8s
Queue Release Build / build-linux (push) Successful in 47m26s
Queue Release Build / build-android (push) Successful in 19m52s
Queue Release Build / finalize (push) Successful in 4m42s
Stream large receives to disk with chunk acks to cap renderer RAM, evict off-screen display blobs, and route exports through a disk-aware download service. Fix the high-memory dialog (backdrop dismiss, copy, log actions), allow diagnostics paths in the path jail, and restore persisted image hydration after reload. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
407 B
TypeScript
17 lines
407 B
TypeScript
import {
|
|
describe,
|
|
expect,
|
|
it
|
|
} from 'vitest';
|
|
import { isReadableRegularFile } from './file-read.rules';
|
|
|
|
describe('file-read.rules', () => {
|
|
it('accepts regular files', () => {
|
|
expect(isReadableRegularFile({ isFile: () => true })).toBe(true);
|
|
});
|
|
|
|
it('rejects directories and other non-file paths', () => {
|
|
expect(isReadableRegularFile({ isFile: () => false })).toBe(false);
|
|
});
|
|
});
|