tsdoc/test/test.aidoc.nonci.ts

27 lines
661 B
TypeScript
Raw Normal View History

2024-04-03 11:34:26 +00:00
import { tap, expect } from '@push.rocks/tapbundle';
import * as qenv from '@push.rocks/qenv';
let testQenv = new qenv.Qenv('./', '.nogit/');
import * as tsdocs from '../ts/index.js';
let aidocs: tsdocs.AiDoc;
tap.test('should create an AIdocs class', async () => {
aidocs = new tsdocs.AiDoc({
2024-06-22 11:20:55 +00:00
OPENAI_TOKEN: await testQenv.getEnvVarOnDemand('OPENAI_TOKEN'),
2024-04-03 11:34:26 +00:00
});
expect(aidocs).toBeInstanceOf(tsdocs.AiDoc);
});
tap.test('should start AIdocs', async () => {
await aidocs.start();
await aidocs.buildReadme('./');
2024-06-22 11:20:55 +00:00
});
2024-04-03 11:34:26 +00:00
tap.test('should start AIdocs', async () => {
await aidocs.start();
await aidocs.buildDescription('./');
2024-06-22 11:20:55 +00:00
});
2024-04-03 11:34:26 +00:00
2024-06-22 11:20:55 +00:00
tap.start();