Files

11 lines
603 B
TypeScript

import { readFile } from 'node:fs/promises';
import { expect, it } from 'vitest';
it('mounts the investment SDK source into the web dev service, not only the worker', async () => {
const compose = await readFile(new URL('../docker-compose.dev.yml', import.meta.url), 'utf8');
const web = compose.match(/\n {2}web:\n([\s\S]*?)\n {2}worker:\n/)?.[1];
// Web SSR imports the posting projector from the SDK's development export.
// Updating only the worker can prepare new reports while web keeps an older SDK image.
expect(web).toContain('../../packages/hledger/src:/m/packages/hledger/src:ro');
});