mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 03:54:43 -07:00
Adding some simple tests. (#54)
This commit is contained in:
@@ -8,14 +8,15 @@
|
||||
"build": "tsc --build && cp package.json dist/",
|
||||
"clean": "rm -rf dist",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"format": "prettier --write ."
|
||||
"format": "prettier --write .",
|
||||
"test": "vitest run"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.3.3"
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^3.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { helloServer } from './index.js';
|
||||
|
||||
describe('server tests', () => {
|
||||
it('should export helloServer function', () => {
|
||||
expect(helloServer).toBeDefined();
|
||||
expect(typeof helloServer).toBe('function');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user