15 lines
596 B
TypeScript
15 lines
596 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.json (schema: crates/conusai-presets/src/repo_config.rs,
|
|
// `health_check.path`).
|
|
describe('conusai.json', () => {
|
|
const config = JSON.parse(readFileSync(new URL('../conusai.json', import.meta.url), 'utf8'))
|
|
|
|
it('declares the health check path the app actually serves', () => {
|
|
expect(config.health_check.path).toBe('/api/health')
|
|
})
|
|
})
|