Adding some simple tests. (#54)

This commit is contained in:
Evan Senter
2025-04-19 18:07:24 +01:00
committed by GitHub
parent d9ad2a74ae
commit 0c9e1ef61b
8 changed files with 1626 additions and 9 deletions

View File

@@ -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"

View 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');
});
});