14 lines
584 B
TypeScript
14 lines
584 B
TypeScript
import { readFileSync } from 'node:fs'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
// The deployer's default health probe is "/" (deploy_image.rs), which renders
|
|
// this app's dashboard; the template must ship its real health route in
|
|
// .conusai.yaml (schema: crates/conusai-repo-config, `health.path`).
|
|
describe('.conusai.yaml', () => {
|
|
const yaml = readFileSync(new URL('../.conusai.yaml', import.meta.url), 'utf8')
|
|
|
|
it('declares the health check path the app actually serves', () => {
|
|
expect(yaml).toMatch(/^health:\n(\s{2}.*\n)*\s{2}path: \/api\/health\s*$/m)
|
|
})
|
|
})
|