Files
orca/config/scripts/orcad-distribution/server-bundle/orcad-child-artifacts.test.mjs
T
Neil 76b17ad670 fix(orcad): ship session search worker entry to remote hosts (#40133)
ORCAD_CHILD_ENTRY_POINTS builds session-search-worker-entry.js, but
ORCAD_ARTIFACTS never listed it, so templates, the materializer, and the
remote installer dropped it and SSH-hosted session search failed with
'Session search worker entry not found'. Add the artifact and a test that
every built child entry is listed.
2026-11-08 20:56:01 -08:00

13 lines
574 B
JavaScript

import { expect, it } from 'vitest'
import { ORCAD_ARTIFACTS } from '../../../../src/shared/orcad-artifacts.ts'
import { ORCAD_CHILD_ENTRY_POINTS, orcadChildOutputFilename } from './orcad-entry-build.mjs'
// A child built but not listed never reaches remote hosts, so its client fails there.
it.each(Object.entries(ORCAD_CHILD_ENTRY_POINTS))(
'ships the %s child bundle as an orcad artifact',
(_name, entryPoint) => {
const filenames = ORCAD_ARTIFACTS.map((artifact) => artifact.filename)
expect(filenames).toContain(orcadChildOutputFilename(entryPoint))
}
)