feat: update package version to 0.0.42 and add CNB version fetching functionality
- Updated package version in package.json from 0.0.40 to 0.0.42. - Added getCNBVersion function to fetch CNB version information from the API. - Enhanced Issue class with methods for managing comments (list, create, get, update). - Introduced new NPC and comment environment hooks for better context management. - Implemented Docker image synchronization route for CNB. - Added tests for version fetching and issue comment functionalities.
This commit is contained in:
11
test/version.test.ts
Normal file
11
test/version.test.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { getCNBVersion } from '../src/index.ts';
|
||||
import { describe, it, expect } from 'bun:test';
|
||||
|
||||
describe('getCNBVersion', () => {
|
||||
it('should return version info', async () => {
|
||||
const versionInfo = await getCNBVersion();
|
||||
expect(versionInfo).toHaveProperty('version');
|
||||
expect(versionInfo).toHaveProperty('commitID');
|
||||
expect(versionInfo).toHaveProperty('hash');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user