mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 10:58:10 +00:00
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.
13 lines
574 B
JavaScript
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))
|
|
}
|
|
)
|