f9447f8e5f
CI / typecheck · build · test · bundle-size (push) Failing after 1s
CI / clean-room dependency closure smoke (push) Failing after 1s
CI / server-runtime e2e (docker · pg + valkey) (push) Failing after 2s
Deploy Install Scripts / deploy (push) Failing after 2s
Windows / build (push) Has been cancelled
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { describe, it, expect } from 'bun:test';
|
|
import { readFileSync } from 'fs';
|
|
import { join } from 'path';
|
|
|
|
const watcherSource = readFileSync(
|
|
join(__dirname, '..', 'src', 'services', 'transcripts', 'watcher.ts'),
|
|
'utf-8',
|
|
);
|
|
|
|
describe('Codex transcript ingestion on Windows (#2192)', () => {
|
|
it('normalizes backslashes to forward slashes before passing the path to scanGlob', () => {
|
|
expect(watcherSource).toContain('normalizeGlobPattern');
|
|
expect(watcherSource).toContain("inputPath.replace(/\\\\/g, '/')");
|
|
expect(watcherSource).toMatch(/scanGlob\(this\.normalizeGlobPattern\(/);
|
|
});
|
|
|
|
it('exposes a public poke() on the file tailer so the recursive root watcher can prod it', () => {
|
|
expect(watcherSource).toMatch(/\bpoke\(\): void\b/);
|
|
});
|
|
|
|
it('pokes an existing tailer on root-watcher events instead of returning early', () => {
|
|
expect(watcherSource).toMatch(/existingTailer\.poke\(\)/);
|
|
});
|
|
|
|
it('normalizes the resolved path to forward slashes before tailer-map lookup', () => {
|
|
expect(watcherSource).toMatch(/resolvePath\(watchRoot, name\)\.replace\(\/\\\\\/g, '\/'\)/);
|
|
});
|
|
|
|
});
|