feat: hooked the APIs of the app into the pyoide core.
This commit is contained in:
14
tests/renderer/python/apiDocumentationSync.test.ts
Normal file
14
tests/renderer/python/apiDocumentationSync.test.ts
Normal 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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user