feat: hooked the APIs of the app into the pyoide core.

This commit is contained in:
2026-02-24 20:58:10 +01:00
parent 9238ad630c
commit c3aacd7776
37 changed files with 5623 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
import { describe, expect, it } from 'vitest';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { generateApiDocumentationMarkdownV1 } from '../../../src/renderer/python/generateApiDocumentationMarkdownV1';
describe('API documentation markdown sync', () => {
it('matches generated contract documentation', () => {
const apiMarkdownPath = resolve(process.cwd(), 'API.md');
const committedMarkdown = readFileSync(apiMarkdownPath, 'utf8');
const generatedMarkdown = generateApiDocumentationMarkdownV1();
expect(committedMarkdown).toBe(generatedMarkdown);
});
});