Source-candidate: poe d9a564e6d20f5f0fd75ce45b12cbbf8bb4c9d568\nSource-candidate: magica38ba5762b06716db1dee00d0afec162656488f5c\nValidated321whole-file phase plus whole bus1349/model-proxy100/webui490; final gate tooling checks pending, not landed.
13 lines
944 B
JavaScript
13 lines
944 B
JavaScript
// Import-parser architecture guard: adding the management client to the Console
|
|
// would move its key/connection boundary out of the bus, and must fail this test.
|
|
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { build } from '../node_modules/esbuild/lib/main.js';
|
|
import { fileURLToPath } from 'node:url';
|
|
test('Console production module graph cannot import the model-proxy client', async () => {
|
|
const result = await build({ entryPoints: [new URL('../src/cli.mjs', import.meta.url), new URL('../src/serve.mjs', import.meta.url),
|
|
new URL('../src/console-bus.mjs', import.meta.url)].map(fileURLToPath), bundle: true, packages: 'external',
|
|
platform: 'node', format: 'esm', splitting: true, outdir: '/unused-proxy-architecture', write: false, metafile: true, logLevel: 'silent' });
|
|
assert.equal(Object.keys(result.metafile.inputs).some(file => file.endsWith('/model-proxy/src/client.mjs')), false);
|
|
});
|