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

@@ -52,4 +52,28 @@ describe('package.json packaging configuration', () => {
expect(dependencies.uuid).toBeTypeOf('string');
expect(devDependencies.uuid).toBeUndefined();
});
it('copies API documentation into packaged app resources', () => {
const build = packageJson.build as Record<string, any>;
const extraResources = build.extraResources as Array<{ from: string; to: string }>;
expect(Array.isArray(extraResources)).toBe(true);
expect(extraResources).toEqual(expect.arrayContaining([
expect.objectContaining({
from: 'API.md',
}),
]));
});
it('copies user documentation into packaged app resources', () => {
const build = packageJson.build as Record<string, any>;
const extraResources = build.extraResources as Array<{ from: string; to: string }>;
expect(Array.isArray(extraResources)).toBe(true);
expect(extraResources).toEqual(expect.arrayContaining([
expect.objectContaining({
from: 'DOCUMENTATION.md',
}),
]));
});
});