mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00: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"
|
||||
|
||||
9
packages/server/src/index.test.ts
Normal file
9
packages/server/src/index.test.ts
Normal file
@@ -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