mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-24 02:39:19 -05:00
feat: add Jest testing framework and CI/CD configuration (#187)
Co-authored-by: samanhappy@qq.com <my6051199>
This commit is contained in:
17
tests/basic.test.ts
Normal file
17
tests/basic.test.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// Simple test to verify Jest configuration
|
||||
describe('Jest Configuration', () => {
|
||||
it('should be working correctly', () => {
|
||||
expect(1 + 1).toBe(2);
|
||||
});
|
||||
|
||||
it('should support async operations', async () => {
|
||||
const promise = Promise.resolve('test');
|
||||
await expect(promise).resolves.toBe('test');
|
||||
});
|
||||
it('should have custom matchers available', () => {
|
||||
const date = new Date();
|
||||
// Test custom matcher - this will fail if setup is not working
|
||||
expect(typeof date.getTime()).toBe('number');
|
||||
expect(date.getTime()).toBeGreaterThan(0);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user